File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed
Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ var Defaults = Config{
101101 KeepBlocks : false ,
102102 Produce : true ,
103103 },
104- DropUselessPeers : false ,
104+ DropUselessPeers : true ,
105105}
106106
107107func init () {
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ require (
7272 github.com/protolambda/eth2-shuffle v1.1.0
7373 github.com/protolambda/ztyp v0.2.2
7474 github.com/prysmaticlabs/go-bitfield v0.0.0-20210809151128-385d8c5e3fb7
75- github.com/prysmaticlabs/gohashtree v0.0.2 -alpha
75+ github.com/prysmaticlabs/gohashtree v0.0.3 -alpha
7676 github.com/prysmaticlabs/prysm/v4 v4.0.3
7777 github.com/quasilyte/go-ruleguard/dsl v0.3.22
7878 github.com/rs/cors v1.8.3
Original file line number Diff line number Diff line change @@ -1405,8 +1405,8 @@ github.com/prysmaticlabs/fastssz v0.0.0-20220628121656-93dfe28febab/go.mod h1:MA
14051405github.com/prysmaticlabs/go-bitfield v0.0.0-20210108222456-8e92c3709aa0 /go.mod h1:hCwmef+4qXWjv0jLDbQdWnL0Ol7cS7/lCSS26WR+u6s =
14061406github.com/prysmaticlabs/go-bitfield v0.0.0-20210809151128-385d8c5e3fb7 h1:0tVE4tdWQK9ZpYygoV7+vS6QkDvQVySboMVEIxBJmXw =
14071407github.com/prysmaticlabs/go-bitfield v0.0.0-20210809151128-385d8c5e3fb7 /go.mod h1:wmuf/mdK4VMD+jA9ThwcUKjg3a2XWM9cVfFYjDyY4j4 =
1408- github.com/prysmaticlabs/gohashtree v0.0.2 -alpha h1:hk5ZsDQuSkyUMhTd55qB396P1+dtyIKiSwMmYE/hyEU =
1409- github.com/prysmaticlabs/gohashtree v0.0.2 -alpha /go.mod h1:4pWaT30XoEx1j8KNJf3TV+E3mQkaufn7mf+jRNb/Fuk =
1408+ github.com/prysmaticlabs/gohashtree v0.0.3 -alpha h1:1EVinCWdb3Lorq7xn8DYQHf48nCcdAM3Vb18KsFlRWY =
1409+ github.com/prysmaticlabs/gohashtree v0.0.3 -alpha /go.mod h1:4pWaT30XoEx1j8KNJf3TV+E3mQkaufn7mf+jRNb/Fuk =
14101410github.com/prysmaticlabs/prombbolt v0.0.0-20210126082820-9b7adba6db7c /go.mod h1:ZRws458tYHS/Zs936OQ6oCrL+Ict5O4Xpwve1UQ6C9M =
14111411github.com/prysmaticlabs/protoc-gen-go-cast v0.0.0-20211014160335-757fae4f38c6 /go.mod h1:ZVEbRdnMkGhp/pu35zq4SXxtvUwWK0J1MATtekZpH2Y =
14121412github.com/prysmaticlabs/prysm v0.0.0-20220124113610-e26cde5e091b h1:XULhE6PdzCYSe5OEVFhuixNqL3mYVOq/3M+SUGnKr1Y =
Original file line number Diff line number Diff line change @@ -55,12 +55,12 @@ const (
5555 bucketIPLimit , bucketSubnet = 2 , 24 // at most 2 addresses from the same /24
5656 tableIPLimit , tableSubnet = 10 , 24
5757
58- refreshInterval = 30 * time .Minute
58+ refreshInterval = 10 * time .Minute
5959 revalidateInterval = 5 * time .Second
6060 copyNodesInterval = 30 * time .Second
6161 seedMinTableTime = 5 * time .Minute
62- seedCount = 30
63- seedMaxAge = 5 * 24 * time .Hour
62+ seedCount = 50
63+ seedMaxAge = 3 * 24 * time .Hour
6464)
6565
6666// Table is the 'node table', a Kademlia-like index of neighbor nodes. The table keeps
@@ -255,6 +255,7 @@ loop:
255255 go tab .doRefresh (refreshDone )
256256 }
257257 case req := <- tab .refreshReq :
258+ log .Debug ("refresh peers request received" )
258259 waiting = append (waiting , req )
259260 if refreshDone == nil {
260261 refreshDone = make (chan struct {})
You can’t perform that action at this time.
0 commit comments