Disable coinbase-must-be-protected rule on regtest.

This commit is contained in:
Sean Bowe
2016-06-13 12:23:55 -06:00
parent 1d38795f50
commit c0dde76d8a
7 changed files with 22 additions and 14 deletions

View File

@@ -282,7 +282,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
// policy here, but we still have to ensure that the block we
// create only contains transactions that are valid in new blocks.
CValidationState state;
if (!ContextualCheckInputs(tx, state, view, true, MANDATORY_SCRIPT_VERIFY_FLAGS, true))
if (!ContextualCheckInputs(tx, state, view, true, MANDATORY_SCRIPT_VERIFY_FLAGS, true, Params().GetConsensus()))
continue;
UpdateCoins(tx, state, view, nHeight);