From 63dd96cad120167f394747df485fe59cae76032b Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Sat, 6 Jul 2024 13:42:33 +0300 Subject: [PATCH] remove setting last_updated field --- network/init-neutrond.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/network/init-neutrond.sh b/network/init-neutrond.sh index fc1418c7b..6a3213746 100755 --- a/network/init-neutrond.sh +++ b/network/init-neutrond.sh @@ -733,7 +733,6 @@ NUM_MARKETS=$(echo "$MARKETS" | jq '.markets | length + 1') NUM_MARKETS=$NUM_MARKETS; jq --arg num "$NUM_MARKETS" '.app_state["oracle"]["next_id"] = $num' "$GENESIS_PATH" > genesis_tmp.json && mv genesis_tmp.json "$GENESIS_PATH" MARKETS=$MARKETS; jq --arg markets "$MARKETS" '.app_state["marketmap"]["market_map"] = ($markets | fromjson)' "$GENESIS_PATH" > genesis_tmp.json && mv genesis_tmp.json "$GENESIS_PATH" -jq '.app_state["marketmap"]["last_updated"] = 1' "$GENESIS_PATH" > genesis_tmp.json && mv genesis_tmp.json "$GENESIS_PATH" MARKETS=$MARKETS; jq --arg markets "$MARKETS" '.app_state["oracle"]["currency_pair_genesis"] += [$markets | fromjson | .markets | values | .[].ticker.currency_pair | {"currency_pair": {"Base": .Base, "Quote": .Quote}, "currency_pair_price": null, "nonce": 0} ]' "$GENESIS_PATH" > genesis_tmp.json && mv genesis_tmp.json "$GENESIS_PATH" MARKETS=$MARKETS; jq --arg markets "$MARKETS" '.app_state["oracle"]["currency_pair_genesis"] |= (to_entries | map(.value += {id: (.key + 1)} | .value))' "$GENESIS_PATH" > genesis_tmp.json && mv genesis_tmp.json "$GENESIS_PATH"