Merge pull request #605 from filecoin-project/fix/validate-err
Fix ValidateBlock ignoring errors
This commit is contained in:
commit
c20aaf3856
@ -589,7 +589,7 @@ func (syncer *Syncer) ValidateBlock(ctx context.Context, b *types.FullBlock) err
|
|||||||
var merr error
|
var merr error
|
||||||
for _, fut := range await {
|
for _, fut := range await {
|
||||||
if err := fut.AwaitContext(ctx); err != nil {
|
if err := fut.AwaitContext(ctx); err != nil {
|
||||||
err = multierror.Append(merr, err)
|
merr = multierror.Append(merr, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user