Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-mempool-coherence-on-activations.py
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
# client software. We use the replay protection activation for this test. | # client software. We use the replay protection activation for this test. | ||||
ACTIVATION_TIME = 2000000000 | ACTIVATION_TIME = 2000000000 | ||||
EXTRA_ARG = "-replayprotectionactivationtime={}".format(ACTIVATION_TIME) | EXTRA_ARG = "-replayprotectionactivationtime={}".format(ACTIVATION_TIME) | ||||
# simulation starts before activation | # simulation starts before activation | ||||
FIRST_BLOCK_TIME = ACTIVATION_TIME - 86400 | FIRST_BLOCK_TIME = ACTIVATION_TIME - 86400 | ||||
# Expected RPC error when trying to send an activation specific spend txn. | # Expected RPC error when trying to send an activation specific spend txn. | ||||
EXPECTED_ERROR = b'mandatory-script-verify-flag-failed (Signature must be zero for failed CHECK(MULTI)SIG operation)' | RPC_EXPECTED_ERROR = "mandatory-script-verify-flag-failed (Signature must be zero for failed CHECK(MULTI)SIG operation) (code 16)" | ||||
RPC_EXPECTED_ERROR = "16: " + \ | |||||
EXPECTED_ERROR.decode("utf-8") | |||||
def create_fund_and_activation_specific_spending_tx(spend, pre_fork_only): | def create_fund_and_activation_specific_spending_tx(spend, pre_fork_only): | ||||
# Creates 2 transactions: | # Creates 2 transactions: | ||||
# 1) txfund: create outputs to be used by txspend. Must be valid pre-fork. | # 1) txfund: create outputs to be used by txspend. Must be valid pre-fork. | ||||
# 2) txspend: spending transaction that is specific to the activation | # 2) txspend: spending transaction that is specific to the activation | ||||
# being used and can be pre-fork-only or post-fork-only, depending on the | # being used and can be pre-fork-only or post-fork-only, depending on the | ||||
# function parameter. | # function parameter. | ||||
▲ Show 20 Lines • Show All 322 Lines • Show Last 20 Lines |