File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 55edition = " 2018"
66
77[dependencies ]
8- discv5 = { version = " 0.1.0-beta.5 " , features = [" libp2p" ] }
8+ discv5 = { version = " 0.1.0-beta.6 " , features = [" libp2p" ] }
99unsigned-varint = { version = " 0.6.0" , features = [" codec" ] }
1010types = { path = " ../../consensus/types" }
1111hashset_delay = { path = " ../../common/hashset_delay" }
Original file line number Diff line number Diff line change @@ -174,6 +174,10 @@ impl Default for Config {
174174 . disable_report_discovered_peers ( )
175175 . ip_limit ( ) // limits /24 IP's in buckets.
176176 . incoming_bucket_limit ( 8 ) // half the bucket size
177+ . filter_rate_limiter ( filter_rate_limiter)
178+ . filter_max_bans_per_ip ( Some ( 5 ) )
179+ . filter_max_nodes_per_ip ( Some ( 10 ) )
180+ . ban_duration ( Some ( Duration :: from_secs ( 3600 ) ) )
177181 . ping_interval ( Duration :: from_secs ( 300 ) )
178182 . build ( ) ;
179183
You can’t perform that action at this time.
0 commit comments