File tree 2 files changed +4
-3
lines changed 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def run_test(self):
33
33
34
34
self .log .info ("prune some blocks" )
35
35
pruneheight = self .nodes [0 ].pruneblockchain (400 )
36
- assert_equal (pruneheight , 250 )
36
+ assert_equal (pruneheight , 248 )
37
37
38
38
self .log .info ("check if we can access the tips blockfilter when we have pruned some blocks" )
39
39
assert_greater_than (len (self .nodes [0 ].getblockfilter (self .nodes [0 ].getbestblockhash ())['filter' ]), 0 )
Original file line number Diff line number Diff line change @@ -739,11 +739,12 @@ def _initialize_chain(self):
739
739
# block in the cache does not age too much (have an old tip age).
740
740
# This is needed so that we are out of IBD when the test starts,
741
741
# see the tip age check in IsInitialBlockDownload().
742
- gen_addresses = [k .address for k in TestNode .PRIV_KEYS ] + [ADDRESS_BCRT1_P2WSH_OP_TRUE ]
742
+ gen_addresses = [k .address for k in TestNode .PRIV_KEYS ][:3 ] + [ADDRESS_BCRT1_P2WSH_OP_TRUE ]
743
+ assert_equal (len (gen_addresses ), 4 )
743
744
for i in range (8 ):
744
745
cache_node .generatetoaddress (
745
746
nblocks = 25 if i != 7 else 24 ,
746
- address = gen_addresses [i % 4 ],
747
+ address = gen_addresses [i % len ( gen_addresses ) ],
747
748
)
748
749
749
750
assert_equal (cache_node .getblockchaininfo ()["blocks" ], 199 )
You can’t perform that action at this time.
0 commit comments