fix: sync: iterate over returned messages directly (#11373)
This commit is contained in:
parent
290f35a24f
commit
b7a3da4319
@ -1094,8 +1094,8 @@ func (syncer *Syncer) fetchMessages(ctx context.Context, headers []*types.TipSet
|
|||||||
requestErr = multierror.Append(requestErr, err)
|
requestErr = multierror.Append(requestErr, err)
|
||||||
} else {
|
} else {
|
||||||
isGood := true
|
isGood := true
|
||||||
for index, ts := range headers[nextI:lastI] {
|
for index, cm := range result {
|
||||||
cm := result[index]
|
ts := headers[nextI+index]
|
||||||
if err := checkMsgMeta(ts, cm.Bls, cm.Secpk, cm.BlsIncludes, cm.SecpkIncludes); err != nil {
|
if err := checkMsgMeta(ts, cm.Bls, cm.Secpk, cm.BlsIncludes, cm.SecpkIncludes); err != nil {
|
||||||
log.Errorf("fetched messages not as expected: %s", err)
|
log.Errorf("fetched messages not as expected: %s", err)
|
||||||
isGood = false
|
isGood = false
|
||||||
|
Loading…
Reference in New Issue
Block a user