Transform a NULLDUMMY compliant tx (i.e. scriptSig starts with OP_0) to be non-NULLDUMMY compliant by replacing the dummy with OP_TRUE
(tx)
| 36 | NULLDUMMY_ERROR = "mempool-script-verify-flag-failed (Dummy CHECKMULTISIG argument must be zero)" |
| 37 | |
| 38 | def invalidate_nulldummy_tx(tx): |
| 39 | """Transform a NULLDUMMY compliant tx (i.e. scriptSig starts with OP_0) |
| 40 | to be non-NULLDUMMY compliant by replacing the dummy with OP_TRUE""" |
| 41 | assert_equal(tx.vin[0].scriptSig[0], OP_0) |
| 42 | tx.vin[0].scriptSig = bytes([OP_TRUE]) + tx.vin[0].scriptSig[1:] |
| 43 | tx.rehash() |
| 44 | |
| 45 | |
| 46 | class NULLDUMMYTest(BitcoinTestFramework): |
no test coverage detected