forked from cerc-io/plugeth
downloader: reset hashTtl on receive
This commit is contained in:
parent
71aa5fe8a3
commit
86ecdcd5ff
@ -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 New Issue
Block a user