From 41573f1fb2993ce1894c773f31116c61437af05e Mon Sep 17 00:00:00 2001 From: vyzo Date: Mon, 14 Jun 2021 23:21:47 +0300 Subject: [PATCH] also walk parent message receipts when including messages in the walk --- blockstore/splitstore/splitstore.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blockstore/splitstore/splitstore.go b/blockstore/splitstore/splitstore.go index f24a350b0..d25de718e 100644 --- a/blockstore/splitstore/splitstore.go +++ b/blockstore/splitstore/splitstore.go @@ -863,6 +863,10 @@ func (s *SplitStore) walk(ts *types.TipSet, boundary abi.ChainEpoch, inclMsgs bo if err := s.walkLinks(hdr.Messages, walked, f); err != nil { return xerrors.Errorf("error walking messages (cid: %s): %w", hdr.Messages, err) } + + if err := s.walkLinks(hdr.ParentMessageReceipts, walked, f); err != nil { + return xerrors.Errorf("error walking message receipts (cid: %s): %w", hdr.ParentMessageReceipts, err) + } } if err := s.walkLinks(hdr.ParentStateRoot, walked, f); err != nil {