Configuration
Reference for the flags Windpay's nodes run with, what each one does, and which ones cause real damage if set wrongly.
Network identity
| Flag | Value | Notes |
|---|---|---|
--networkid | 5552020 | Mainnet. Testnet is 5552040. |
--datadir | /data | Chain data. Must persist across restarts. |
--config | /config/node.toml | Static peer list. |
--networkid must match or the node is rejected by every peer.
Peering
| Flag | Value | Notes |
|---|---|---|
--nodiscover | set | Discovery off. Peers come only from the config file. |
--maxpeers | 25 |
All Windpay nodes run with discovery disabled. See the peering note on Installation.
Sync and storage
| Flag | Value | Notes |
|---|---|---|
--syncmode | full | Every node. No snap sync in this setup. |
--gcmode | archive | Archive nodes only. Keeps all historical state. |
--cache | 192 sealers, 256 RPC, 384 archive | MB of in-process cache. |
--gcmode=archive cannot be switched on later without re-syncing from genesis — the pruned state is gone. Decide before you start.
Raising --cache improves performance and raises memory use; keep the total under mem_limit or the container is killed.
Gas pricing
| Flag | Value |
|---|---|
--miner.gasprice | 476190476191 |
--txpool.pricelimit | 476190476191 |
--gpo.maxprice | 1000000000000 |
--rpc.txfeecap | 1000 |
Both gas-price flags must be set, and must match the network
--txpool.pricelimit is what makes your node reject underpriced transactions. Set it lower than the network's floor and your node accepts transactions into its pool that every other node refuses — they sit there forever, and if you are a validator, you produce blocks other nodes reject.
--gpo.maxprice caps what the oracle will suggest. --rpc.txfeecap caps the total fee of a single transaction submitted through this node, in WIND, as a guard against a fat-fingered fee.
RPC listeners
| Flag | Value | Notes |
|---|---|---|
--http | set | RPC nodes only. Never on a sealer. |
--http.addr | 0.0.0.0 | Inside the container only — see below. |
--http.port | 8545 | |
--http.api | eth,net,web3,parlia,txpool | Archive adds debug. |
--http.vhosts | * | Safe only because the port is not public. |
--ws, --ws.addr, --ws.port | 0.0.0.0, 8546 | |
--ws.origins | * | Same reasoning. |
Never publish an RPC port on 0.0.0.0
--http.addr=0.0.0.0 binds inside the container. What makes it safe is the Docker port mapping:
ports:
- "127.0.0.1:8545:8545" # correct — loopback only
# - "8545:8545" # WRONG — public, unauthenticated RPCDrop the 127.0.0.1: prefix and you have published an unauthenticated JSON-RPC endpoint to the internet. Put TLS and rate limiting in front via a reverse proxy; never expose geth directly.
Note which APIs are not enabled: no personal, no admin, no miner over HTTP. debug is enabled only on the loopback-only archive node, because tracing calls are expensive enough to be a denial-of-service vector.
The log range limit
| Flag | Value | Where |
|---|---|---|
--rpc.rangelimit | default (5000) | public RPC nodes |
--rpc.rangelimit | 0 (unlimited) | archive node only |
bsc-geth caps the block span of an eth_getLogs query. The default of 5000 applies to the public endpoint; exceeding it returns exceed maximum block range 5000.
This is one of the few places bsc-geth differs from go-ethereum in a way that breaks ported tooling, since go-ethereum has no such cap. Raise it only on internal nodes — an unlimited log range on a public endpoint is an easy way to exhaust the machine.
Validator flags
Sealers only.
| Flag | Purpose |
|---|---|
--mine | Produce blocks. |
--miner.etherbase | The consensus address. |
--unlock | Unlock that account at startup. |
--password | File holding its passphrase. |
--vote | Participate in BLS fast-finality voting. |
--blspassword | File holding the BLS key passphrase. |
One machine, one consensus key
Running the same consensus key on two nodes at once causes double-signing: 200 WIND slashed and 5 days of jail. A warm standby holding a copy of the key is how this usually happens.
Keep the standby's keystore empty. Import the key only after confirming — not assuming — that the primary is stopped.
Note that no sealer uses --allow-insecure-unlock. That flag is only needed when an HTTP or WS listener is enabled, and sealers have neither. If you find yourself needing it, you have exposed RPC on a machine that holds keys.
Monitoring
| Flag | Value |
|---|---|
--metrics | set |
--metrics.addr | 0.0.0.0 |
--metrics.port | 6060 |
--verbosity | 3 (info) |
Prometheus metrics on 6060, scraped on the internal network. Verbosity 4 is useful when debugging; it is noisy enough to fill a disk if left on.
Memory limits
mem_limit: 1200m
mem_reservation: 256mEvery Windpay node, every role. Measured usage is 213–335 MiB, so there is substantial headroom. The limit exists so that one misbehaving node cannot take down the others sharing the host.
Keep --cache well under mem_limit — the cache is not the only thing in the process, and exceeding the limit gets the container OOM-killed mid-block.
Graceful shutdown
stop_grace_period: 2mA geth-family node needs time to flush state. Killing it mid-write corrupts the database and costs a full re-sync. Two minutes is what Windpay allows; do not reduce it, and never kill -9 a node you want to start again.
Next step
Name service overview, or Contract addresses.
Verified 2026-10-22. Every flag and value above was read from the six node service definitions in /opt/windpay/docker-compose.prod.yml on the chain host, with ${WINDPAY_MIN_GAS_PRICE} (476190476191), ${WINDPAY_GPO_MAX_PRICE} (1000000000000) and ${WINDPAY_TX_FEE_CAP} (1000) resolved from /opt/windpay/.env. The 5000-block log cap was measured against the public endpoint; --rpc.rangelimit=0 appears on rpc3 alone.

