message: changing where to look for data.lmdb
diff: @@ -438,9 +438,21 @@ function setup_asset_global_state_toml() {
  local PATH_TO_NET
  PATH_TO_NET="$(get_path_to_net)"
  -
  for IDX in $(seq 1 "$COUNT_NODES")
  do
  + # if the combined integers from the PROTOCOL_VERISON >= 140 ( 1_4_0 )
  + if [ "$(echo $PROTOCOL_VERSION | tr -d '_')" -ge "140" ]; then
  + # Check new data.lmdb path under ..storage/<chain_name>/
  + if [ -f "$PATH_TO_NET/nodes/node-$IDX/storage/$(get_chain_name)/data.lmdb" ]; then
  + echo "GLOBAL_STATE_OUTPUT=$NCTL_CASPER_HOME/target/$NCTL_COMPILE_TARGET/global-state-update-gen system-contract-registry -d $PATH_TO_NET/nodes/node-$IDX/storage/$(get_chain_name)"
  + GLOBAL_STATE_OUTPUT=$("$NCTL_CASPER_HOME"/target/"$NCTL_COMPILE_TARGET"/global-state-update-gen \
  + system-contract-registry -d "$PATH_TO_NET"/nodes/node-"$IDX"/storage/"$(get_chain_name)")
  + else
  + GLOBAL_STATE_OUTPUT=$("$NCTL_CASPER_HOME"/target/"$NCTL_COMPILE_TARGET"/global-state-update-gen \
  + system-contract-registry -d "$PATH_TO_NET"/nodes/node-1/storage/"$(get_chain_name)")
  + fi
  + else
  +
  if [ -f "$PATH_TO_NET/nodes/node-$IDX/storage/data.lmdb" ]; then
  GLOBAL_STATE_OUTPUT=$("$NCTL_CASPER_HOME"/target/"$NCTL_COMPILE_TARGET"/global-state-update-gen \
  system-contract-registry -d "$PATH_TO_NET"/nodes/node-"$IDX"/storage)
  @@ -448,6 +460,7 @@ function setup_asset_global_state_toml() {
  GLOBAL_STATE_OUTPUT=$("$NCTL_CASPER_HOME"/target/"$NCTL_COMPILE_TARGET"/global-state-update-gen \
  system-contract-registry -d "$PATH_TO_NET"/nodes/node-1/storage)
  fi
  + fi
  echo "$GLOBAL_STATE_OUTPUT" > "$PATH_TO_NET/nodes/node-$IDX/config/$PROTOCOL_VERSION/global_state.toml"
  done
  