This commit is contained in:
jl777
2016-10-21 16:56:27 -03:00
parent f0eb47af80
commit 75b751ec17
2 changed files with 2 additions and 2 deletions

View File

@@ -2153,7 +2153,7 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
return state.DoS(100, error("ConnectBlock(): too many sigops"),
REJECT_INVALID, "bad-blk-sigops");
nFees += view.GetValueIn(tx,pindex->pprev->nTime)-tx.GetValueOut();
nFees += view.GetValueIn(tx,chainActive.Tip()->nTime)-tx.GetValueOut();
std::vector<CScriptCheck> vChecks;
if (!ContextualCheckInputs(tx, state, view, fScriptChecks, flags, false, chainparams.GetConsensus(), nScriptCheckThreads ? &vChecks : NULL))