mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: disable discovery for --dev (#9229)
This commit is contained in:
@ -58,15 +58,12 @@ where
|
||||
let mut nodes: Vec<NodeTestContext<_>> = Vec::with_capacity(num_nodes);
|
||||
|
||||
for idx in 0..num_nodes {
|
||||
let mut node_config = NodeConfig::test()
|
||||
let node_config = NodeConfig::test()
|
||||
.with_chain(chain_spec.clone())
|
||||
.with_network(network_config.clone())
|
||||
.with_unused_ports()
|
||||
.with_rpc(RpcServerArgs::default().with_unused_ports().with_http());
|
||||
|
||||
if is_dev {
|
||||
node_config = node_config.dev();
|
||||
}
|
||||
.with_rpc(RpcServerArgs::default().with_unused_ports().with_http())
|
||||
.set_dev(is_dev);
|
||||
|
||||
let span = span!(Level::INFO, "node", idx);
|
||||
let _enter = span.enter();
|
||||
|
||||
Reference in New Issue
Block a user