From 7b02673620cd40378b09ceb9a76e4a21c16a9077 Mon Sep 17 00:00:00 2001 From: vyzo Date: Wed, 16 Jun 2021 18:26:04 +0300 Subject: [PATCH] don't try to visit genesis parent blocks --- blockstore/splitstore/splitstore.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blockstore/splitstore/splitstore.go b/blockstore/splitstore/splitstore.go index 2532413db..660823762 100644 --- a/blockstore/splitstore/splitstore.go +++ b/blockstore/splitstore/splitstore.go @@ -892,7 +892,9 @@ func (s *SplitStore) walk(ts *types.TipSet, boundary abi.ChainEpoch, inclMsgs bo } } - toWalk = append(toWalk, hdr.Parents...) + if hdr.Height > 0 { + toWalk = append(toWalk, hdr.Parents...) + } return nil }