Skip to content

Commit

Permalink
fix: sync: iterate over returned messages directly (filecoin-project#…
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek authored Nov 1, 2023
1 parent 5f593b3 commit 29fbfaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chain/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -1094,8 +1094,8 @@ func (syncer *Syncer) fetchMessages(ctx context.Context, headers []*types.TipSet
requestErr = multierror.Append(requestErr, err)
} else {
isGood := true
for index, ts := range headers[nextI:lastI] {
cm := result[index]
for index, cm := range result {
ts := headers[nextI+index]
if err := checkMsgMeta(ts, cm.Bls, cm.Secpk, cm.BlsIncludes, cm.SecpkIncludes); err != nil {
log.Errorf("fetched messages not as expected: %s", err)
isGood = false
Expand Down

0 comments on commit 29fbfaf

Please sign in to comment.