Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_nulldummy.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2016 The Bitcoin Core developers | # Copyright (c) 2016 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
from test_framework.test_framework import BitcoinTestFramework | |||||
from test_framework.util import * | |||||
from test_framework.messages import FromHex, ToHex | |||||
from test_framework.mininode import CTransaction, network_thread_start | |||||
from test_framework.blocktools import create_coinbase, create_block | |||||
from test_framework.script import CScript | |||||
import time | import time | ||||
from test_framework.blocktools import create_block, create_coinbase | |||||
from test_framework.messages import CTransaction, FromHex, ToHex | |||||
from test_framework.mininode import network_thread_start | |||||
from test_framework.script import CScript | |||||
from test_framework.test_framework import BitcoinTestFramework | |||||
from test_framework.util import assert_equal, assert_raises_rpc_error | |||||
NULLDUMMY_ERROR = "64: non-mandatory-script-verify-flag (Dummy CHECKMULTISIG argument must be zero)" | NULLDUMMY_ERROR = "64: non-mandatory-script-verify-flag (Dummy CHECKMULTISIG argument must be zero)" | ||||
def trueDummy(tx): | def trueDummy(tx): | ||||
scriptSig = CScript(tx.vin[0].scriptSig) | scriptSig = CScript(tx.vin[0].scriptSig) | ||||
newscript = [] | newscript = [] | ||||
for i in scriptSig: | for i in scriptSig: | ||||
if (len(newscript) == 0): | if (len(newscript) == 0): | ||||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |