Skip to content

Commit

Permalink
Avalanchego v1.4.10 (#17)
Browse files Browse the repository at this point in the history
* go mod tidy

* updating versions

* fix config dir

* fix error response

* build flags

* hardcode version

* make network/options work offline
  • Loading branch information
patrick-ogrady authored Jul 13, 2021
1 parent f6de885 commit 52fa70f
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 38 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ DOCKER_ORG ?= avaplatform
DOCKER_IMAGE ?= ${DOCKER_ORG}/${PROJECT}
DOCKER_LABEL ?= latest
DOCKER_TAG ?= ${DOCKER_IMAGE}:${DOCKER_LABEL}
AVALANCHE_VERSION ?= v1.4.8
AVALANCHE_VERSION ?= v1.4.10

build:
go build -o ./rosetta-server ./cmd/server
Expand Down
31 changes: 19 additions & 12 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,25 @@ cat <<EOF > /app/avalanchego-config.json
"api-admin-enabled": false,
"api-ipcs-enabled": false,
"api-keystore-enabled": false,
"coreth-config": {
"snowman-api-enabled": false,
"coreth-admin-api-enabled": false,
"net-api-enabled": true,
"rpc-gas-cap": 2500000000,
"rpc-tx-fee-cap": 100,
"eth-api-enabled": true,
"personal-api-enabled": false,
"tx-pool-api-enabled": true,
"debug-api-enabled": true,
"web3-api-enabled": true
}
"chain-config-dir": "/app/configs/chains"
}
EOF

mkdir -p /app/configs/chains/C

cat <<EOF > /app/configs/chains/C/config.json
{
"snowman-api-enabled": false,
"coreth-admin-api-enabled": false,
"net-api-enabled": true,
"rpc-gas-cap": 2500000000,
"rpc-tx-fee-cap": 100,
"eth-api-enabled": true,
"personal-api-enabled": false,
"tx-pool-api-enabled": true,
"debug-api-enabled": true,
"web3-api-enabled": true,
"pruning-enabled": false
}
EOF

Expand Down
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ go 1.15

require (
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d // indirect
github.com/ava-labs/avalanchego v1.4.8
github.com/ava-labs/coreth v0.5.4-rc.3
github.com/ava-labs/avalanchego v1.4.10
github.com/ava-labs/coreth v0.5.5-rc.1
github.com/coinbase/rosetta-sdk-go v0.6.5
github.com/decred/dcrd/dcrec/secp256k1/v3 v3.0.0 // indirect
github.com/ethereum/go-ethereum v1.10.3
Expand All @@ -18,5 +18,4 @@ require (
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
go.opencensus.io v0.22.5 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/text v0.3.5 // indirect
)
Loading

0 comments on commit 52fa70f

Please sign in to comment.