File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,8 @@ bool BaseIndex::Init()
96
96
prune_violation = false ;
97
97
break ;
98
98
}
99
+ // block->pprev must exist at this point, since block_to_test is part of the chain
100
+ // and thus must be encountered when going backwards from the tip
99
101
assert (block->pprev );
100
102
block = block->pprev ;
101
103
}
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ def run_test(self):
29
29
30
30
self .log .info ("prune some blocks" )
31
31
pruneheight = self .nodes [0 ].pruneblockchain (400 )
32
+ # the prune heights used here and below are magic numbers that are determined by the
33
+ # thresholds at which block files wrap, so they depend on disk serialization and default block file size.
32
34
assert_equal (pruneheight , 248 )
33
35
34
36
self .log .info ("check if we can access the tips blockfilter when we have pruned some blocks" )
You can’t perform that action at this time.
0 commit comments