diff --git a/dappnode_package.json b/dappnode_package.json index 6fca0fd..87673be 100644 --- a/dappnode_package.json +++ b/dappnode_package.json @@ -1,32 +1,8 @@ { - "name": "near.dnp.dappnode.eth", - "version": "0.1.17", - "upstreamVersion": "2.12.0", - "upstreamRepo": "near/nearcore", - "upstreamArg": "UPSTREAM_VERSION", - "shortDescription": "Reimagine your world.", - "description": "Through simple, secure, and scalable technology, NEAR empowers millions to invent and explore new experiences. Business, creativity, and community are being reimagined for a more sustainable and inclusive future.", - "type": "service", - "mainService": "near", - "author": "eduadiez (https://github.com/eduadiez)", - "contributors": [ - "mgarciate (https://github.com/mgarciate)", - "Voss (https://github.com/alexpeterson91)" + "architectures": [ + "linux/amd64" ], - "categories": ["Blockchain", "Developer tools"], - "architectures": ["linux/amd64"], - "links": { - "homepage": "https://near.org", - "api": "http://near.dappnode:3030", - "Wallet": "http://wallet.near.dappnode" - }, - "repository": { - "type": "git", - "url": "https://github.com/dappnode/DAppNodePackage-NEAR.git" - }, - "bugs": { - "url": "https://github.com/dappnode/DAppNodePackage-NEAR/issues" - }, + "author": "eduadiez (https://github.com/eduadiez)", "backup": [ { "name": "config", @@ -44,5 +20,34 @@ "service": "near" } ], - "license": "GPL-3.0" + "bugs": { + "url": "https://github.com/dappnode/DAppNodePackage-NEAR/issues" + }, + "categories": [ + "Blockchain", + "Developer tools" + ], + "contributors": [ + "mgarciate (https://github.com/mgarciate)", + "Voss (https://github.com/alexpeterson91)" + ], + "description": "Through simple, secure, and scalable technology, NEAR empowers millions to invent and explore new experiences. Business, creativity, and community are being reimagined for a more sustainable and inclusive future.", + "license": "GPL-3.0", + "links": { + "Wallet": "http://wallet.near.dappnode", + "api": "http://near.dappnode:3030", + "homepage": "https://near.org" + }, + "mainService": "near", + "name": "near.dnp.dappnode.eth", + "repository": { + "type": "git", + "url": "https://github.com/dappnode/DAppNodePackage-NEAR.git" + }, + "shortDescription": "Reimagine your world.", + "type": "service", + "upstreamArg": "UPSTREAM_VERSION", + "upstreamRepo": "near/nearcore", + "upstreamVersion": "2.13.0", + "version": "0.1.18" } diff --git a/docker-compose.yml b/docker-compose.yml index 03bf19b..a0e6b26 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: build: context: neard_image args: - UPSTREAM_VERSION: 2.12.0 + UPSTREAM_VERSION: 2.13.0 volumes: - near:/srv/near restart: unless-stopped diff --git a/neard_image/start_near.sh b/neard_image/start_near.sh index 7ca37dc..9c41fa7 100755 --- a/neard_image/start_near.sh +++ b/neard_image/start_near.sh @@ -31,6 +31,12 @@ else fi +if [ -f "$NEAR_HOME/config.json" ]; then + echo "Removing state_sync.sync block from config.json" + jq 'del(.state_sync.sync)' "$NEAR_HOME/config.json" > "$NEAR_HOME/config.json.tmp" \ + && mv "$NEAR_HOME/config.json.tmp" "$NEAR_HOME/config.json" +fi + if [ "$FETCH_BOOT_NODES" = "true" ]; then BOOT_NODES=$(curl -X POST https://rpc.${CHAIN_ID}.near.org \ -H "Content-Type: application/json" \ -d '{