walkChain should visit the genesis state root

This commit is contained in:
vyzo 2021-07-04 12:46:45 +03:00
parent 95c3aaec9a
commit 8e56fffb33

View File

@ -1052,9 +1052,9 @@ func (s *SplitStore) walkChain(ts *types.TipSet, boundary abi.ChainEpoch, inclMs
}
// we only scan the block if it is at or above the boundary
if hdr.Height >= boundary {
if hdr.Height >= boundary || hdr.Height == 0 {
scanCnt++
if inclMsgs {
if inclMsgs && hdr.Height > 0 {
if err := s.walkObject(hdr.Messages, walked, f); err != nil {
return xerrors.Errorf("error walking messages (cid: %s): %w", hdr.Messages, err)
}