fix(op): configure discv5 properly in op builder (#9058)

This commit is contained in:
Matthias Seitz
2024-06-24 18:01:42 +02:00
committed by GitHub
parent c5aee02ff7
commit 83d412da70
3 changed files with 14 additions and 2 deletions

View File

@ -131,7 +131,7 @@ impl ConfigBuilder {
}
/// Adds boot nodes in the form a list of [`NodeRecord`]s, parsed enodes.
pub fn add_unsigned_boot_nodes(mut self, enodes: impl Iterator<Item = NodeRecord>) -> Self {
pub fn add_unsigned_boot_nodes(mut self, enodes: impl IntoIterator<Item = NodeRecord>) -> Self {
for node in enodes {
if let Ok(node) = BootNode::from_unsigned(node) {
self.bootstrap_nodes.insert(node);