Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-mempool-coherence-on-activations.py
Show All 30 Lines | from test_framework.messages import ( | ||||
COutPoint, | COutPoint, | ||||
CTransaction, | CTransaction, | ||||
CTxIn, | CTxIn, | ||||
CTxOut, | CTxOut, | ||||
ToHex, | ToHex, | ||||
) | ) | ||||
from test_framework.p2p import P2PDataStore | from test_framework.p2p import P2PDataStore | ||||
from test_framework.script import ( | from test_framework.script import ( | ||||
CScript, | |||||
OP_CHECKSIG, | OP_CHECKSIG, | ||||
OP_TRUE, | OP_TRUE, | ||||
SIGHASH_ALL, | SIGHASH_ALL, | ||||
SIGHASH_FORKID, | SIGHASH_FORKID, | ||||
CScript, | |||||
SignatureHashForkId, | SignatureHashForkId, | ||||
) | ) | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import assert_equal, assert_raises_rpc_error | from test_framework.util import assert_equal, assert_raises_rpc_error | ||||
# ---Code specific to the activation used for this test--- | # ---Code specific to the activation used for this test--- | ||||
# It might change depending on the activation code currently existing in the | # It might change depending on the activation code currently existing in the | ||||
# 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 | ||||
▲ Show 20 Lines • Show All 321 Lines • Show Last 20 Lines |