diff --git a/.vscode/launch.json b/.vscode/launch.json index ea52618fa..4e0a3c5b9 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -141,7 +141,7 @@ }, // Run { - "name": "Init (devnet)", + "name": "Run (devnet)", "presentation": { "group": "20-Run" }, @@ -150,29 +150,11 @@ "mode": "auto", "program": "${workspaceFolder}/cmd/accumulated", "args": [ - "init", - "devnet", - "-w=${workspaceFolder}/.nodes", - "--reset", - "-b=1", + "run", "devnet", + "-w=${workspaceFolder}/.nodes/devnet", + "-b=2", "-v=1", "-f=0", - "-s=0", - "--globals={\"executorVersion\": \"v2\"}", - "--faucet-seed=ci", - ] - }, - { - "name": "Run (devnet)", - "presentation": { - "group": "20-Run" - }, - "type": "go", - "request": "launch", - "mode": "auto", - "program": "${workspaceFolder}/cmd/accumulated", - "args": [ - "${workspaceFolder}/.nodes/devnet", ] }, { diff --git a/cmd/accumulated/run/devnet.go b/cmd/accumulated/run/devnet.go index 6e9cf3867..9f2eefb41 100644 --- a/cmd/accumulated/run/devnet.go +++ b/cmd/accumulated/run/devnet.go @@ -371,7 +371,7 @@ func (n nodeOpts) apply(inst *Instance, root *Config) error { // Create partition services opts := partOpts{ CoreValidatorConfiguration: &CoreValidatorConfiguration{ - Listen: listen(n.DevNet.Listen, devNetDefaultHost, n.IP, portDir), + Listen: listen(n.DevNet.Listen, devNetDefaultHost, n.IP), ValidatorKey: rawPrivKeyFrom(n.PrivVal), StorageType: n.DevNet.StorageType, }, @@ -391,7 +391,6 @@ func (n nodeOpts) apply(inst *Instance, root *Config) error { opts.Type = protocol.PartitionTypeBlockValidator opts.Dir = "bvnn" opts.Genesis = filepath.Join("..", fmt.Sprintf("bvn%d-genesis.snap", n.BVN)) - opts.Listen = listen(n.DevNet.Listen, devNetDefaultHost, n.IP, portBVN) opts.MetricsNamespace = fmt.Sprintf("consensus_bvn%d_%d", n.BVN, n.IP) opts.BootstrapPeers = n.BvnBootstrap err = opts.apply(cfg)