Fix ValidateBlock ignoring errors

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2019-11-14 19:41:40 +01:00
parent d684300713
commit 63edea510e
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

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)
}
}