Skip to content

Commit 3cb1b4a

Browse files
committed
delete .state_sync.sync block
1 parent 98d1b7b commit 3cb1b4a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎neard_image/start_near.sh‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ else
3131
fi
3232

3333

34+
if [ -f "$NEAR_HOME/config.json" ]; then
35+
echo "Removing state_sync.sync block from config.json"
36+
jq 'del(.state_sync.sync)' "$NEAR_HOME/config.json" > "$NEAR_HOME/config.json.tmp" \
37+
&& mv "$NEAR_HOME/config.json.tmp" "$NEAR_HOME/config.json"
38+
fi
39+
3440
if [ "$FETCH_BOOT_NODES" = "true" ]; then
3541
BOOT_NODES=$(curl -X POST https://rpc.${CHAIN_ID}.near.org \ -H "Content-Type: application/json" \
3642
-d '{

0 commit comments

Comments
 (0)