Skip to content

Commit

Permalink
Merge pull request ethereum#51 from lochjin/v1.14.5-qng
Browse files Browse the repository at this point in the history
BUG:qng downloader repeated requests
  • Loading branch information
dindinw authored Jul 20, 2024
2 parents 451a00f + 359497a commit 9fcd19d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eth/downloader/downloader_qng.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package downloader

import (
"fmt"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth/protocols/eth"
Expand Down Expand Up @@ -34,6 +35,9 @@ func (d *Downloader) SyncQng(peerid string, mode SyncMode, hash common.Hash) err
log.Error("Received invalid sync target", "want", hash, "have", metas[0])
return err
}
if d.skeleton.filler.(*beaconBackfiller).filling {
return fmt.Errorf("backfiller is filling:%s", hash.String())
}
return d.BeaconSync(mode, headers[0], headers[0])
}

Expand Down

0 comments on commit 9fcd19d

Please sign in to comment.