Update chain/sync.go

Co-Authored-By: Łukasz Magiera <magik6k@users.noreply.github.com>
This commit is contained in:
Whyrusleeping 2019-09-18 04:08:03 +10:00 committed by GitHub
parent 2ab9a0a4b3
commit cf257ae773
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")