mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-29 12:52:55 +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 {
|
for {
|
||||||
select {
|
select {
|
||||||
case hashes := <-d.hashCh:
|
case hashes := <-d.hashCh:
|
||||||
|
failureResponse.Reset(hashTtl)
|
||||||
|
|
||||||
var done bool // determines whether we're done fetching hashes (i.e. common hash found)
|
var done bool // determines whether we're done fetching hashes (i.e. common hash found)
|
||||||
hashSet := set.New()
|
hashSet := set.New()
|
||||||
for _, hash := range hashes {
|
for _, hash := range hashes {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue