Fix ValidateBlock ignoring errors
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
d684300713
commit
63edea510e
@ -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