From f28cc3e3043f39fab29f4f95ee138847d496fac5 Mon Sep 17 00:00:00 2001 From: wacban Date: Wed, 7 Dec 2022 14:55:59 +0000 Subject: [PATCH] [fix] Fix localnet config - local ports should be set to true --- nearcore/src/config.rs | 3 ++- neard/src/cli.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nearcore/src/config.rs b/nearcore/src/config.rs index c755a10a4ef..cd0a16d7764 100644 --- a/nearcore/src/config.rs +++ b/nearcore/src/config.rs @@ -1166,6 +1166,7 @@ pub fn init_testnet_configs( num_validator_seats: NumSeats, num_non_validator_seats: NumSeats, prefix: &str, + local_ports: bool, archive: bool, fixed_shards: bool, ) { @@ -1174,7 +1175,7 @@ pub fn init_testnet_configs( num_validator_seats, num_non_validator_seats, prefix, - false, + local_ports, archive, fixed_shards, ); diff --git a/neard/src/cli.rs b/neard/src/cli.rs index b48b0ba91bb..14e071adc5f 100644 --- a/neard/src/cli.rs +++ b/neard/src/cli.rs @@ -564,6 +564,7 @@ impl LocalnetCmd { self.validators, self.non_validators, &self.prefix, + true, self.archival_nodes, self.fixed_shards, );