File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ impl ConfigBuilder {
131
131
}
132
132
133
133
/// Adds boot nodes in the form a list of [`NodeRecord`]s, parsed enodes.
134
- pub fn add_unsigned_boot_nodes ( mut self , enodes : impl Iterator < Item = NodeRecord > ) -> Self {
134
+ pub fn add_unsigned_boot_nodes ( mut self , enodes : impl IntoIterator < Item = NodeRecord > ) -> Self {
135
135
for node in enodes {
136
136
if let Ok ( node) = BootNode :: from_unsigned ( node) {
137
137
self . bootstrap_nodes . insert ( node) ;
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ impl NetworkArgs {
185
185
} = self . discovery ;
186
186
187
187
builder
188
- . add_unsigned_boot_nodes ( chain_bootnodes. into_iter ( ) )
188
+ . add_unsigned_boot_nodes ( chain_bootnodes)
189
189
. lookup_interval ( discv5_lookup_interval)
190
190
. bootstrap_lookup_interval ( discv5_bootstrap_lookup_interval)
191
191
. bootstrap_lookup_countdown ( discv5_bootstrap_lookup_countdown)
Original file line number Diff line number Diff line change @@ -292,6 +292,18 @@ where
292
292
}
293
293
294
294
builder
295
+ } )
296
+ // ensure we configure discv5
297
+ . map_discv5_config_builder ( |builder| {
298
+ builder
299
+ . add_unsigned_boot_nodes ( ctx. chain_spec ( ) . bootnodes ( ) . unwrap_or_default ( ) )
300
+ . lookup_interval ( ctx. config ( ) . network . discovery . discv5_lookup_interval )
301
+ . bootstrap_lookup_interval (
302
+ ctx. config ( ) . network . discovery . discv5_bootstrap_lookup_interval ,
303
+ )
304
+ . bootstrap_lookup_countdown (
305
+ ctx. config ( ) . network . discovery . discv5_bootstrap_lookup_countdown ,
306
+ )
295
307
} ) ;
296
308
297
309
let mut network_config = ctx. build_network_config ( network_builder) ;
You can’t perform that action at this time.
0 commit comments