mirror of https://github.com/status-im/op-geth.git
downloader: reset hashTtl on receive
This commit is contained in:
parent
71aa5fe8a3
commit
86ecdcd5ff
|
@ -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 New Issue