Update chain/sync.go
Co-Authored-By: Łukasz Magiera <magik6k@users.noreply.github.com>
This commit is contained in:
parent
2ab9a0a4b3
commit
cf257ae773
@ -477,7 +477,7 @@ func (syncer *Syncer) ValidateBlock(ctx context.Context, b *types.FullBlock) err
|
||||
bs := amt.WrapBlockstore(syncer.store.Blockstore())
|
||||
recptRoot, err := amt.FromArray(bs, receipts)
|
||||
if err != nil {
|
||||
return xerrors.Errorf("building receipts hamt failed: %w", err)
|
||||
return xerrors.Errorf("building receipts amt failed: %w", err)
|
||||
}
|
||||
if recptRoot != b.Header.MessageReceipts {
|
||||
return fmt.Errorf("receipts mismatched")
|
||||
|
Loading…
Reference in New Issue
Block a user