Skip to content

Commit

Permalink
fix for missing block under certain startup conditions (#3557)
Browse files Browse the repository at this point in the history
  • Loading branch information
antiochp authored Feb 9, 2021
1 parent b7a9f7b commit 52d18f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chain/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ impl Chain {
// In reality we will do this based on PIBD segment requests.
// Initialization (once per 12 hour period) will not be this slow once lmdb and PMMRs
// are warmed up.
{
let segmenter = chain.segmenter()?;
if let Ok(segmenter) = chain.segmenter() {
let _ = segmenter.kernel_segment(SegmentIdentifier { height: 9, idx: 0 });
let _ = segmenter.bitmap_segment(SegmentIdentifier { height: 9, idx: 0 });
let _ = segmenter.output_segment(SegmentIdentifier { height: 11, idx: 0 });
Expand Down

0 comments on commit 52d18f5

Please sign in to comment.