Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-replay-protection.py
Show First 20 Lines • Show All 298 Lines • ▼ Show 20 Lines | def get_tests(self): | ||||
assert(replay_tx0_id in set(node.getrawmempool())) | assert(replay_tx0_id in set(node.getrawmempool())) | ||||
assert(replay_tx1_id in set(node.getrawmempool())) | assert(replay_tx1_id in set(node.getrawmempool())) | ||||
# They also can also be mined | # They also can also be mined | ||||
b5 = block(5) | b5 = block(5) | ||||
update_block(5, replay_txns) | update_block(5, replay_txns) | ||||
yield accepted() | yield accepted() | ||||
# Ok, now we check if a reorg work properly accross the activation. | # Ok, now we check if a reorg work properly across the activation. | ||||
postforkblockid = node.getbestblockhash() | postforkblockid = node.getbestblockhash() | ||||
node.invalidateblock(postforkblockid) | node.invalidateblock(postforkblockid) | ||||
assert(replay_tx0_id in set(node.getrawmempool())) | assert(replay_tx0_id in set(node.getrawmempool())) | ||||
assert(replay_tx1_id in set(node.getrawmempool())) | assert(replay_tx1_id in set(node.getrawmempool())) | ||||
# Deactivating replay protection. | # Deactivating replay protection. | ||||
forkblockid = node.getbestblockhash() | forkblockid = node.getbestblockhash() | ||||
node.invalidateblock(forkblockid) | node.invalidateblock(forkblockid) | ||||
Show All 15 Lines |