# Besu Configuration for Validator Nodes
# Validators participate in IBFT 2.0 consensus
# RPC is disabled for security

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

# Network Configuration
network-id=138
p2p-host="0.0.0.0"
p2p-port=30303

# Consensus - IBFT 2.0
consensus-protocol="ibft2"
miner-enabled=false
miner-coinbase="0x0000000000000000000000000000000000000000"

# Sync Configuration
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="/config/permissions-nodes.toml"
permissions-accounts-config-file-enabled=true
permissions-accounts-config-file="/config/permissions-accounts.toml"

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

# Network Peering
bootnodes=[]

# Static Nodes (sentries only)
static-nodes-file="/config/static-nodes.json"

# Privacy (disabled for public network)
privacy-enabled=false

# JSON-RPC APIs (disabled, but listed for reference)
# rpc-http-api=["ETH","NET","WEB3","TXPOOL","IBFT"]
# rpc-ws-api=["ETH","NET","WEB3","TXPOOL","IBFT"]

# Host Allowlist (not used since RPC is disabled)
# host-allowlist=["*"]

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

# Gas Configuration
rpc-tx-feecap="0x0"

# Native Accounts
accounts-enabled=false

