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 });