From a3aed4aae5fe07323796fb5986e26d368c12e01c Mon Sep 17 00:00:00 2001 From: Antioch Peverell Date: Tue, 9 Feb 2021 09:13:39 +0000 Subject: [PATCH] fix for missing block under certain startup conditions (#3555) --- chain/src/chain.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chain/src/chain.rs b/chain/src/chain.rs index a25df38f7..e6e89d74e 100644 --- a/chain/src/chain.rs +++ b/chain/src/chain.rs @@ -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 });