Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-segwit-recovery.py
Show All 35 Lines | |||||
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 (Script did not clean its stack)' | CLEANSTACK_ERROR = 'non-mandatory-script-verify-flag (Extra items left on stack after execution)' | ||||
RPC_CLEANSTACK_ERROR = CLEANSTACK_ERROR + " (code 64)" | RPC_CLEANSTACK_ERROR = CLEANSTACK_ERROR + " (code 64)" | ||||
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) (code 64)" | RPC_EVAL_FALSE_ERROR = EVAL_FALSE_ERROR + "ent) (code 64)" | ||||
class PreviousSpendableOutput(object): | class PreviousSpendableOutput(object): | ||||
def __init__(self, tx=CTransaction(), n=-1): | def __init__(self, tx=CTransaction(), n=-1): | ||||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |