Skip to content

Commit

Permalink
[BUG] Add special tx processing to RollforwardBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra committed May 28, 2021
1 parent 5d6bcef commit 9a1bf27
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3743,6 +3743,13 @@ static bool RollforwardBlock(const CBlockIndex* pindex, CCoinsViewCache& inputs,
// Pass check = true as every addition may be an overwrite.
AddCoins(inputs, *tx, pindex->nHeight, true, fSkipInvalid);
}

CValidationState state;
if (!ProcessSpecialTxsInBlock(block, pindex, state, false /*fJustCheck*/)) {
return error("%s: Special tx processing failed for block %s with %s",
__func__, pindex->GetBlockHash().ToString(), FormatStateMessage(state));
}

return true;
}

Expand Down

0 comments on commit 9a1bf27

Please sign in to comment.