From 5e3263dec388ea6a5442753e8705cb8d5c0a724b Mon Sep 17 00:00:00 2001 From: cventastic Date: Wed, 19 Oct 2022 14:16:05 +0200 Subject: [PATCH] added flags to erigon in entrypoint.sh rename volume in erigon-polygon.yml --- erigon-polygon.yml | 4 ++-- polygon/erigon/scripts/entrypoint.sh | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erigon-polygon.yml b/erigon-polygon.yml index 79c38352..5fb3ba61 100644 --- a/erigon-polygon.yml +++ b/erigon-polygon.yml @@ -11,7 +11,7 @@ services: - SNAPSHOT_URL=https://matic-blockchain-snapshots.s3-accelerate.amazonaws.com/matic-mainnet/erigon-archive-snapshot-2022-10-12.tar.gz - BOOTSTRAP=1 volumes: - - "bor-archive_data:/datadir" + - "polygon-archive_data:/datadir" ports: - "40303:40303" - "40303:40303/udp" @@ -31,4 +31,4 @@ services: - chains volumes: - bor-archive_data: + polygon-archive_data: diff --git a/polygon/erigon/scripts/entrypoint.sh b/polygon/erigon/scripts/entrypoint.sh index 440fd18a..7f338147 100644 --- a/polygon/erigon/scripts/entrypoint.sh +++ b/polygon/erigon/scripts/entrypoint.sh @@ -28,6 +28,9 @@ exec erigon \ --chain=bor-mainnet \ --bor.heimdall=http://heimdallr:1317 \ --datadir=${ERIGON_HOME} \ + --http --http.addr="0.0.0.0" --http.port="8545" --http.compression --http.vhosts="*" --http.corsdomain="*" --http.api="eth,debug,net,trace,web3,erigon,bor" \ + --ws --ws.compression \ --snap.keepblocks=true \ + --snapshots="true" \ --metrics --metrics.addr=0.0.0.0 --metrics.port=6060 \ --pprof --pprof.addr=0.0.0.0 --pprof.port=6061 \ No newline at end of file