Use 4 validating nodes in testnet0

This commit is contained in:
Zahary Karadjov 2019-11-05 17:33:06 +02:00 committed by zah
parent 13068c6b57
commit 627b60dc10
1 changed files with 4 additions and 4 deletions

View File

@ -38,8 +38,8 @@ var
let customValidatorAssignments = {
"testnet0": proc (nodeIdx: int): int =
if nodeidx < 2:
systemValidators div 2
if nodeidx < 4:
systemValidators div 4
else:
0
}
@ -99,8 +99,8 @@ of reset_network:
echo &" ssh {n.server} 'sudo docker container stop {n.container} && " &
&"sudo mkdir -p {dockerPath}/validators && " &
&"sudo rm -f {dockerPath}/validators/* && " &
&"sudo rm -f {dockerPath}/db" &
&"sudo rm -rf {dockerPath}/validators/* && " &
&"sudo rm -rf {dockerPath}/db && " &
(if keysList.len > 0: &"sudo mv /tmp/nimbus/keys/* {dockerPath}/validators/ && " else: "") &
&"sudo mv /tmp/nimbus/net-data/* {dockerPath}/ && " &
&"sudo chown dockremap:docker -R {dockerPath}'"