diff --git a/_assets/patches/geth/0036-add-delay-to-refresh-cycle.patch b/_assets/patches/geth/0036-add-delay-to-refresh-cycle.patch new file mode 100644 index 000000000..d1d912c97 --- /dev/null +++ b/_assets/patches/geth/0036-add-delay-to-refresh-cycle.patch @@ -0,0 +1,13 @@ +diff --git a/p2p/discv5/net.go b/p2p/discv5/net.go +index d0eae28f..113dabc8 100644 +--- a/p2p/discv5/net.go ++++ b/p2p/discv5/net.go +@@ -678,7 +678,7 @@ func (net *Network) refresh(done chan<- struct{}) { + } + if len(seeds) == 0 { + log.Trace("no seed nodes found") +- close(done) ++ time.AfterFunc(time.Second*10, func() { close(done) }) + return + } + for _, n := range seeds { diff --git a/vendor/github.com/ethereum/go-ethereum/p2p/discv5/net.go b/vendor/github.com/ethereum/go-ethereum/p2p/discv5/net.go index d0eae28f9..113dabc85 100644 --- a/vendor/github.com/ethereum/go-ethereum/p2p/discv5/net.go +++ b/vendor/github.com/ethereum/go-ethereum/p2p/discv5/net.go @@ -678,7 +678,7 @@ func (net *Network) refresh(done chan<- struct{}) { } if len(seeds) == 0 { log.Trace("no seed nodes found") - close(done) + time.AfterFunc(time.Second*10, func() { close(done) }) return } for _, n := range seeds {