mirror of
https://github.com/EvernodeXRPL/hp-devkit.git
synced 2026-04-29 15:37:58 +00:00
Update cluster.sh
The bind_mesh function is hardcoding contract.roundtime=2000 (2 seconds) into the configuration incorrectly causing a duplicate roundtime setting in the default of 1000 irrespective of what contract.roundtime=2000 or what the hp.cfg.override is set to.
It should be setting this to contract.consensus.roundtime
```
cat /var/lib/docker/volumes/hpdevkit_default_vol/_data/node1/cfg/hp.cfg | grep -A10 -B5 roundtime
"bin_args": "index.js",
"environment": {},
"max_input_ledger_offset": 10,
"consensus": {
"mode": "public",
"roundtime": 1000, <--------
"stage_slice": 25,
"threshold": 80
},
"npl": {
"mode": "private"
},
"round_limits": {
"user_input_bytes": 0,
"user_output_bytes": 0,
"npl_output_bytes": 0,
"proc_cpu_seconds": 0,
"proc_mem_bytes": 0,
"proc_ofd_count": 0,
"exec_timeout": 300000
},
"roundtime": 2000 <-------
},
"mesh": {
"port": 22861,
"listen": true,
"idle_timeout": 120000,
"known_peers": [
"node2:22862",
"node3:22863"
],
"msg_forwarding": true,
```
This commit is contained in:
@@ -145,7 +145,7 @@ function bind_mesh {
|
||||
let peer_port=$(($peer_port_begin + $i - 1))
|
||||
let user_port=$(($user_port_begin + $i - 1))
|
||||
|
||||
jq ".contract.id=$contract_id | .contract.roundtime=2000 | .mesh.port=$peer_port | .user.port=$user_port" $cfg_file > $cfg_file.tmp \
|
||||
jq ".contract.id=$contract_id | .contract.consensus.roundtime=2000 | .mesh.port=$peer_port | .user.port=$user_port" $cfg_file > $cfg_file.tmp \
|
||||
&& mv $cfg_file.tmp $cfg_file
|
||||
|
||||
all_pubkeys[i]=$(jq --raw-output ".node.public_key" $cfg_file)
|
||||
@@ -338,4 +338,4 @@ elif [ $command = "sync" ]; then
|
||||
sync_contract_bundle
|
||||
elif [ $command = "status" ]; then
|
||||
show_status
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user