fix for missing block under certain startup conditions (#3555)

This commit is contained in:
Antioch Peverell 2021-02-09 09:13:39 +00:00 committed by GitHub
parent 61982efdd9
commit a3aed4aae5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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