Skip to content

Commit

Permalink
remove setting last_updated field
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0n00gler committed Jul 6, 2024
1 parent 47f1a65 commit 63dd96c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion network/init-neutrond.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 63dd96c

Please sign in to comment.