Merge pull request #605 from filecoin-project/fix/validate-err

Fix ValidateBlock ignoring errors
This commit is contained in:
Jakub Sztandera 2019-11-14 19:48:24 +01:00 committed by GitHub
commit c20aaf3856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -589,7 +589,7 @@ func (syncer *Syncer) ValidateBlock(ctx context.Context, b *types.FullBlock) err
var merr error
for _, fut := range await {
if err := fut.AwaitContext(ctx); err != nil {
err = multierror.Append(merr, err)
merr = multierror.Append(merr, err)
}
}