mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(cli): add persistent peers (#1167)
Co-authored-by: lambdaclass-user <github@lambdaclass.com> Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de> Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
This commit is contained in:
@ -98,7 +98,14 @@ impl Command {
|
||||
config.peers.connect_trusted_nodes_only = self.trusted_only;
|
||||
|
||||
let network = config
|
||||
.network_config(noop_db, self.chain.clone(), self.disable_discovery, None, self.nat)
|
||||
.network_config(
|
||||
noop_db,
|
||||
self.chain.clone(),
|
||||
self.disable_discovery,
|
||||
None,
|
||||
self.nat,
|
||||
None,
|
||||
)
|
||||
.start_network()
|
||||
.await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user