mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Merge pull request #3843
787ee0cCheck redeemScript size does not exceed 520 byte limit (Peter Todd)4d79098Increase IsStandard() scriptSig length (Peter Todd)f80cffaDo not trigger a DoS ban if SCRIPT_VERIFY_NULLDUMMY fails (Peter Todd)6380180Add rejection of non-null CHECKMULTISIG dummy values (Peter Todd)29c1749Let tx (in)valid tests use any SCRIPT_VERIFY flag (Peter Todd)68f7d1dCreate (MANDATORY|STANDARD)_SCRIPT_VERIFY_FLAGS constants (Peter Todd)
This commit is contained in:
@@ -276,8 +276,11 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
|
||||
if (nBlockSigOps + nTxSigOps >= MAX_BLOCK_SIGOPS)
|
||||
continue;
|
||||
|
||||
// Note that flags: we don't want to set mempool/IsStandard()
|
||||
// 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, SCRIPT_VERIFY_P2SH))
|
||||
if (!CheckInputs(tx, state, view, true, MANDATORY_SCRIPT_VERIFY_FLAGS))
|
||||
continue;
|
||||
|
||||
CTxUndo txundo;
|
||||
|
||||
Reference in New Issue
Block a user