Actual nBits should be used.
authorMASM fan <masmfan@gmail.com>
Tue, 14 Apr 2015 19:25:22 +0000 (12:25 -0700)
committerMASM fan <masmfan@gmail.com>
Tue, 14 Apr 2015 19:25:22 +0000 (12:25 -0700)
src/miner.cpp

index 02b38bf..0d63e3c 100644 (file)
@@ -710,7 +710,7 @@ void StakeMiner(CWallet *pwallet)
             CTransaction txCoinStake;
 
             // Create new coinstake transaction
-            if (!pwallet->CreateCoinStake(LuckyInput.first, LuckyInput.second, solution.second, pindexPrev->nBits, txCoinStake, key))
+            if (!pwallet->CreateCoinStake(LuckyInput.first, LuckyInput.second, solution.second, nBits, txCoinStake, key))
             {
                 string strMessage = _("Warning: Unable to create coinstake transaction, see debug.log for the details. Mining thread has been stopped.");
                 strMiscWarning = strMessage;