diff --git a/src/main.cpp b/src/main.cpp index 4843c35..fb1a4ac 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3169,7 +3169,7 @@ bool CheckTransaction(const CTransaction& tx, bool fZerocoinActive, bool fReject LogPrint("bench", " - Connect %u transactions: %.2fms (%.3fms/tx, %.3fms/txin) [%.2fs]\n", (unsigned)block.vtx.size(), 0.001 * (nTime1 - nTimeStart), 0.001 * (nTime1 - nTimeStart) / block.vtx.size(), nInputs <= 1 ? 0 : 0.001 * (nTime1 - nTimeStart) / (nInputs - 1), nTimeConnect * 0.000001); //PoW phase redistributed fees to miner. PoS stage destroys fees. - CAmount nExpectedMint = GetBlockValue(pindex->nHeight); + CAmount nExpectedMint = GetBlockValue((pindex->nHeight >= 3800 ? pindex->nHeight : pindex->pprev->nHeight)); if (block.IsProofOfWork()) nExpectedMint += nFees;