From 1c9f23034221b95474663a20228a23619f1374d4 Mon Sep 17 00:00:00 2001 From: _den <_den@outlook.com> Date: Thu, 3 Mar 2022 16:57:30 +1000 Subject: [PATCH] added txpool locals and fixed pruning container --- geth/docker-compose.yml | 16 +++++++++++++--- geth/example.env | 8 +++++++- geth/geth.md | 2 +- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/geth/docker-compose.yml b/geth/docker-compose.yml index 8f3e4a3..c0dd1b4 100644 --- a/geth/docker-compose.yml +++ b/geth/docker-compose.yml @@ -4,7 +4,7 @@ services: geth-pruning: image: ethereum/client-go:stable container_name: geth-pruning - restart: always + restart: "no" env_file: .env command: "snapshot prune-state" volumes: @@ -31,7 +31,7 @@ services: - --http.corsdomain=* - --http.vhosts=* - --http.api - - "eth,net,web3" + - "eth,net,web3,txpool" - --ws - --ws.addr - "0.0.0.0" @@ -39,7 +39,17 @@ services: - "${WS_PORT}" - --ws.origins=* - --ws.api - - "eth,net,web3" + - "eth,net,web3,txpool" + - --txpool.locals + - "${TX_LOCAL_ADDR}" + - --txpool.accountslots + - "32" + - --txpool.globalslots + - "8192" + - --txpool.accountqueue + - "128" + - --txpool.globalqueue + - "2048" - --rpc.gascap - "0" - --rpc.txfeecap diff --git a/geth/example.env b/geth/example.env index 03f29d8..a407ba4 100644 --- a/geth/example.env +++ b/geth/example.env @@ -1,5 +1,11 @@ +# Traefik DOMAIN=domain.org +# Comma-separated list of IP/mask addresses to allow access. Replace 0.0.0.0/0 with your address +ALLOW_FROM=0.0.0.0/0 + +# Node P2P_PORT=30304 HTTP_PORT=8545 WS_PORT=8546 -ALLOW_FROM=0.0.0.0/0 \ No newline at end of file +# Comma-separated list of addresses to treat as "local" +TX_LOCAL_ADDR=0x0000000000000000000000000000000000000000 \ No newline at end of file diff --git a/geth/geth.md b/geth/geth.md index ac8445e..d71df10 100644 --- a/geth/geth.md +++ b/geth/geth.md @@ -5,7 +5,7 @@ * disk: 1Tb SSD (if you periodically prune state) ## Installation -Set the domain name to be used in the `.env` file. You can also set a list of allowed IP addresses there. Rename `example.env` to `.env`: +Set the domain name to be used in the `.env` file. You can also set a list of allowed IP addresses there and addresses to treat as local. Rename `example.env` to `.env`: ``` mv example.env .env ```