File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -644,7 +644,11 @@ def check_tx_counts(final: bool) -> None:
644
644
for i in (0 , 1 ):
645
645
n = self .nodes [i ]
646
646
self .log .info (f"Restarting node { i } to ensure (Check|Load)BlockIndex passes" )
647
- self .restart_node (i , extra_args = self .extra_args [i ])
647
+ # Ensure the assumutxo node has cleaned up the background chainstate
648
+ cleanup_msg = ["cleaning up unneeded background chainstate" ] if i != 0 else []
649
+ with n .assert_debug_log (cleanup_msg ):
650
+ self .restart_node (i , extra_args = self .extra_args [i ])
651
+ assert not (n .datadir_path / "regtest" / "chainstate_snapshot" ).exists ()
648
652
649
653
assert_equal (n .getblockchaininfo ()["blocks" ], FINAL_HEIGHT )
650
654
@@ -721,7 +725,11 @@ def check_tx_counts(final: bool) -> None:
721
725
for i in (0 , 2 ):
722
726
n = self .nodes [i ]
723
727
self .log .info (f"Restarting node { i } to ensure (Check|Load)BlockIndex passes" )
724
- self .restart_node (i , extra_args = self .extra_args [i ])
728
+ # Ensure the assumeutxo node has cleaned up the background chainstate
729
+ cleanup_msg = ["cleaning up unneeded background chainstate" ] if i != 0 else []
730
+ with n .assert_debug_log (cleanup_msg ):
731
+ self .restart_node (i , extra_args = self .extra_args [i ])
732
+ assert not (n .datadir_path / "regtest" / "chainstate_snapshot" ).exists ()
725
733
726
734
assert_equal (n .getblockchaininfo ()["blocks" ], FINAL_HEIGHT )
727
735
You can’t perform that action at this time.
0 commit comments