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

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

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

miner-enabled=false

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

# RPC Configuration (internal only)
rpc-http-enabled=true
rpc-http-host="0.0.0.0"
rpc-http-port=8545
rpc-http-api=["ETH","NET","WEB3","ADMIN"]
rpc-http-cors-origins=["*"]
rpc-http-host-allowlist=["*"]

rpc-ws-enabled=true
rpc-ws-host="0.0.0.0"
rpc-ws-port=8546
rpc-ws-api=["ETH","NET","WEB3"]

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

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

permissions-nodes-config-file-enabled=true
permissions-nodes-config-file="/var/lib/besu/permissions/permissioned-nodes.json"

tx-pool-max-size=8192
tx-pool-price-bump=10
tx-pool-retention-hours=6

static-nodes-file="/var/lib/besu/static-nodes.json"

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

