Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-segwit-recovery.py
Show All 17 Lines | |||||
from test_framework.messages import ( | from test_framework.messages import ( | ||||
COIN, | COIN, | ||||
COutPoint, | COutPoint, | ||||
CTransaction, | CTransaction, | ||||
CTxIn, | CTxIn, | ||||
CTxOut, | CTxOut, | ||||
ToHex, | ToHex, | ||||
) | ) | ||||
from test_framework.p2p import ( | from test_framework.p2p import P2PDataStore | ||||
P2PDataStore, | |||||
) | |||||
from test_framework.script import ( | from test_framework.script import ( | ||||
CScript, | |||||
hash160, | |||||
OP_EQUAL, | OP_EQUAL, | ||||
OP_HASH160, | OP_HASH160, | ||||
OP_TRUE, | OP_TRUE, | ||||
CScript, | |||||
hash160, | |||||
) | ) | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import ( | from test_framework.util import assert_raises_rpc_error | ||||
assert_raises_rpc_error, | |||||
) | |||||
TEST_TIME = int(time.time()) | TEST_TIME = int(time.time()) | ||||
# Error due to non clean stack | # Error due to non clean stack | ||||
CLEANSTACK_ERROR = 'non-mandatory-script-verify-flag (Extra items left on stack after execution)' | CLEANSTACK_ERROR = 'non-mandatory-script-verify-flag (Extra items left on stack after execution)' | ||||
RPC_CLEANSTACK_ERROR = CLEANSTACK_ERROR | RPC_CLEANSTACK_ERROR = CLEANSTACK_ERROR | ||||
EVAL_FALSE_ERROR = 'non-mandatory-script-verify-flag (Script evaluated without error but finished with a false/empty top stack elem' | EVAL_FALSE_ERROR = 'non-mandatory-script-verify-flag (Script evaluated without error but finished with a false/empty top stack elem' | ||||
RPC_EVAL_FALSE_ERROR = EVAL_FALSE_ERROR + "ent)" | RPC_EVAL_FALSE_ERROR = EVAL_FALSE_ERROR + "ent)" | ||||
▲ Show 20 Lines • Show All 233 Lines • Show Last 20 Lines |