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
co-authored by Łukasz Magiera
parent 2ab9a0a4b3
commit cf257ae773
+1 -1
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")