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 ```