Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-finalize-block.py
Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
# / | # / | ||||
# (200)->(201)-> // ->(209)->(210 invalid) | # (200)->(201)-> // ->(209)->(210 invalid) | ||||
# | # | ||||
# On delay_node: | # On delay_node: | ||||
# >(210)->(211)-> // ->(219)-> // ->(229 tip) | # >(210)->(211)-> // ->(219)-> // ->(229 tip) | ||||
# / | # / | ||||
# (200)->(201)-> // ->(209)->(210) | # (200)->(201)-> // ->(209)->(210) | ||||
delay_node = self.nodes[2] | delay_node = self.nodes[2] | ||||
assert_equal(delay_node.getbestblockhash(), alt_node_new_tip) | wait_for_tip(delay_node, alt_node_new_tip) | ||||
assert_equal(delay_node.getfinalizedblockhash(), str()) | assert_equal(delay_node.getfinalizedblockhash(), str()) | ||||
self.log.info( | self.log.info( | ||||
"Check that finalization delay does not prevent auto-finalization") | "Check that finalization delay does not prevent auto-finalization") | ||||
# Expire the delay, then generate 1 new block with alt_node to | # Expire the delay, then generate 1 new block with alt_node to | ||||
# update the tip on all chains. | # update the tip on all chains. | ||||
# Because the finalization delay is expired, auto-finalization | # Because the finalization delay is expired, auto-finalization | ||||
# should occur. | # should occur. | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |