mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 05:11:37 +00:00
cmd/devp2p/v5test: extend FindnodeResults retry window
This commit is contained in:
parent
095778309f
commit
1dbb80afe6
1 changed files with 2 additions and 2 deletions
|
|
@ -296,8 +296,8 @@ that they are returned by FINDNODE.`)
|
||||||
conn, l1 := s.listen1(t)
|
conn, l1 := s.listen1(t)
|
||||||
defer conn.close()
|
defer conn.close()
|
||||||
|
|
||||||
const maxAttempts = 15
|
const maxAttempts = 45
|
||||||
const retryInterval = 3 * time.Second
|
const retryInterval = 2 * time.Second
|
||||||
|
|
||||||
for attempt := 1; attempt <= maxAttempts; attempt++ {
|
for attempt := 1; attempt <= maxAttempts; attempt++ {
|
||||||
foundNodes, err := conn.findnode(l1, dists)
|
foundNodes, err := conn.findnode(l1, dists)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue