snarkOS icon indicating copy to clipboard operation
snarkOS copied to clipboard

[Feature] Need a way to NOT change REST port number when --dev parameter is specified

Open robwafle opened this issue 1 year ago • 1 comments

🚀 Feature

Need a way to NOT change REST port number when --dev parameter is specified

Motivation

This will allow clients to be in a load balancer similar to a production environment where the load balancer points to all 30 clients (e.g. 3 clients for each of the 10 validators). We need development testing environments to match production as closely as possible, and without this we can't have a dev environment that closely resembles production.

Implementation

Hopefully, this is only logic to parse the parameter and one if statement wrapping a small amount of logic that actually doesn't happen in production networks. (when --dev parameter is NOT specified )

I believe the +dev on this line is part of what would have to be made conditional: https://github.com/AleoHQ/snarkOS/blob/mainnet-staging/cli/src/commands/start.rs#L328

robwafle avatar Apr 16 '24 19:04 robwafle

See for a similar or the same issue: https://github.com/AleoHQ/snarkOS/pull/3189

vicsn avatar Apr 17 '24 16:04 vicsn

Should be resolved with https://github.com/AleoNet/snarkOS/pull/3271

raychu86 avatar Jul 02 '24 23:07 raychu86