Add value to cheat catcher through SendChangeTo

This commit is contained in:
miketout
2018-10-13 01:24:36 -07:00
parent 3abeed2c60
commit ac2b240436

View File

@@ -288,7 +288,9 @@ CBlockTemplate* CreateNewBlock(const CScript& _scriptPubKeyIn, int32_t gpucount,
if (pwalletMain->GetHDSeed(seed)) {
ovk = ovkForShieldingFromTaddr(seed);
tb.AddSaplingOutput(ovk, cheatCatcher.value(), cb.vout[0].nValue);
// send everything to Sapling address
tb.SendChangeTo(cheatCatcher.value(), ovk);
tb.AddOpRet(mtx.vout[mtx.vout.size() - 1].scriptPubKey);
cheatSpend = tb.Build();