From 2d02c19ee7030828cebe01ce8324696823ef559b Mon Sep 17 00:00:00 2001 From: Michael Toutonghi Date: Wed, 10 Oct 2018 19:15:41 -0700 Subject: [PATCH] Build --- src/miner.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index 4a06f1182..7930af8d5 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -287,8 +287,8 @@ CBlockTemplate* CreateNewBlock(const CScript& _scriptPubKeyIn, int32_t gpucount, if (pwalletMain->GetHDSeed(seed)) { ovk = ovkForShieldingFromTaddr(seed); - tb.AddSaplingOutput(ovk, cheatCatcher.value, cb.vout[0].nValue); - tb.AddOpRet(mtx.vout[mtx.vout.size - 1].scriptPubKey); + tb.AddSaplingOutput(ovk, cheatCatcher.value(), cb.vout[0].nValue); + tb.AddOpRet(mtx.vout[mtx.vout.size() - 1].scriptPubKey); cheatSpend = tb.Build(); if (cheatSpend) @@ -970,6 +970,7 @@ void static VerusStaker(CWallet *pwallet) RenameThread("verus-staker"); const CChainParams& chainparams = Params(); + auto consensusParams = chainparams.GetConsensus(); // Each thread has its own key CReserveKey reservekey(pwallet);