Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-transaction-ordering.py
Show First 20 Lines • Show All 238 Lines • ▼ Show 20 Lines | def get_tests(self): | ||||
# Now MTP is exactly the fork time. Bigger blocks are now accepted. | # Now MTP is exactly the fork time. Bigger blocks are now accepted. | ||||
assert_equal(node.getblockheader(node.getbestblockhash())['mediantime'], | assert_equal(node.getblockheader(node.getbestblockhash())['mediantime'], | ||||
MAGNETIC_ANOMALY_START_TIME) | MAGNETIC_ANOMALY_START_TIME) | ||||
# Now that the fork activated, we can put transactions out of order in the block. | # Now that the fork activated, we can put transactions out of order in the block. | ||||
out_of_order_block(4445, out[16]) | out_of_order_block(4445, out[16]) | ||||
yield accepted() | yield accepted() | ||||
oooblockhash = node.getbestblockhash() | |||||
node.invalidateblock(oooblockhash) | |||||
assert(node.getbestblockhash() != oooblockhash) | |||||
if __name__ == '__main__': | if __name__ == '__main__': | ||||
TransactionOrderingTest().main() | TransactionOrderingTest().main() |