From e1771cc8843a808797a5f6b9658b152532226ab8 Mon Sep 17 00:00:00 2001 From: Eugene Kim Date: Fri, 29 Nov 2019 19:08:08 +0000 Subject: [PATCH] Make node.sh honor -i, if given, for validators This is required for staked nodes for now, and is be superseded by -staking=true option in harmony binary itself. --- scripts/node.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/node.sh b/scripts/node.sh index abc326261..8cafe41bc 100755 --- a/scripts/node.sh +++ b/scripts/node.sh @@ -653,6 +653,15 @@ do fi # backward compatible with older harmony node software case "${node_type}" in + validator) + case "${shard_id}" in + ?*) + args+=( + -shard_id="${shard_id}" + ) + ;; + esac + ;; explorer) args+=( -node_type="${node_type}"