Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-replay-protection.py
Show First 20 Lines • Show All 292 Lines • ▼ Show 20 Lines | def get_tests(self): | ||||
assert(found_id0 and found_id1) | assert(found_id0 and found_id1) | ||||
# And the mempool is still in good shape. | # And the mempool is still in good shape. | ||||
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) | 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 across 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())) | ||||
Show All 19 Lines |