Rename CheckInputs to ContextualCheckInputs since it relies on a global variable

and assumes calling conditions.
This commit is contained in:
Sean Bowe
2016-06-13 11:45:41 -06:00
parent 47e6645005
commit 10df6fb3df
4 changed files with 9 additions and 9 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 (!CheckInputs(tx, state, view, true, MANDATORY_SCRIPT_VERIFY_FLAGS, true))
if (!ContextualCheckInputs(tx, state, view, true, MANDATORY_SCRIPT_VERIFY_FLAGS, true))
continue;
UpdateCoins(tx, state, view, nHeight);