Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-segwit-recovery.py
Show All 33 Lines | from test_framework.script import ( | ||||
hash160, | hash160, | ||||
) | ) | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import assert_raises_rpc_error | from test_framework.util import 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 (Stack size must be exactly one 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)" | ||||
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 178 Lines • Show Last 20 Lines |