added txpool locals and fixed pruning container

This commit is contained in:
_den 2022-03-03 16:57:30 +10:00
parent cc42ea8f9e
commit 1c9f230342
3 changed files with 21 additions and 5 deletions

View File

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

View File

@ -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
# Comma-separated list of addresses to treat as "local"
TX_LOCAL_ADDR=0x0000000000000000000000000000000000000000

View File

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