mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-27 08:07:22 +00:00
downloader: reset hashTtl on receive
This commit is contained in:
parent
71aa5fe8a3
commit
86ecdcd5ff
1 changed files with 2 additions and 0 deletions
|
|
@ -211,6 +211,8 @@ out:
|
|||
for {
|
||||
select {
|
||||
case hashes := <-d.hashCh:
|
||||
failureResponse.Reset(hashTtl)
|
||||
|
||||
var done bool // determines whether we're done fetching hashes (i.e. common hash found)
|
||||
hashSet := set.New()
|
||||
for _, hash := range hashes {
|
||||
|
|
|
|||
Loading…
Reference in a new issue