# Besu Configuration for Validator Nodes
# This file should be copied to each validator's config directory
# Path: /opt/besu/validators/validator-{N}/config/config-validator.toml

data-path="/data/besu"
genesis-file="/genesis/genesis.json"

network-id=138
p2p-host="0.0.0.0"
p2p-port=30303

# QBFT Consensus
miner-enabled=false
miner-coinbase="0x0000000000000000000000000000000000000000"

sync-mode="FULL"
fast-sync-min-peers=2

# RPC Configuration (DISABLED for validators)
rpc-http-enabled=false
rpc-ws-enabled=false

# Metrics
metrics-enabled=true
metrics-port=9545
metrics-host="0.0.0.0"
metrics-push-enabled=false

# Logging
logging="INFO"
log-destination="CONSOLE"

# Permissioning
permissions-nodes-config-file-enabled=true
permissions-nodes-config-file="/permissions/permissions-nodes.toml"
permissions-accounts-config-file-enabled=true
permissions-accounts-config-file="/permissions/permissions-accounts.toml"

# Transaction Pool
tx-pool-max-size=4096
tx-pool-price-bump=10

# Static Nodes
static-nodes-file="/genesis/static-nodes.json"

# Discovery
discovery-enabled=true

privacy-enabled=false

database-path="/data/besu/database"
trie-logs-enabled=false

rpc-tx-feecap="0x0"
accounts-enabled=false

max-peers=25
max-remote-initiated-connections=10

