# ============================================================
# Vectra Network - Mainnet Configuration
# ============================================================
# Usage:
#   vectrad --config vectra-mainnet.conf
#   vectrad --config vectra-mainnet.conf --addnode 1.2.3.4:8333
#
# PUBLIC node: p2p_bind=0.0.0.0  + open TCP 8333 in firewall
# LOCAL  node: p2p_bind=127.0.0.1 + nolisten=1
# RPC stays on 127.0.0.1 always (never expose to internet)
# ============================================================

# ---- Network mode ----
network=mainnet

# ---- Storage ----
datadir=~/.vectra

# ---- P2P Network ----
# Public node:  p2p_bind=0.0.0.0
# Local-only:   p2p_bind=127.0.0.1  and set listen=0
p2p_bind=0.0.0.0
p2p_port=8333

# ---- RPC Server (always local — do NOT change rpc_bind) ----
rpc_bind=127.0.0.1
rpcport=8332
rpcallowip=127.0.0.1
rpcuser=vectrauser
rpcpassword=CHANGE_THIS_PASSWORD

# ---- Connection limits ----
listen=1
discover=1
maxconnections=125

# ---- Seed / bootstrap nodes (uncomment and fill in when deploying) ----
# addnode=seed1.vectra.network:8333
# addnode=seed2.vectra.network:8333
# addnode=seed3.vectra.network:8333

# ---- Mining ----
mining=0
# miningaddress=YOUR_MAINNET_ADDRESS_HERE

# ---- Memory pool ----
mempoolsize=300

# ---- Database cache ----
dbcache=450

# ---- Security ----
bantime=86400

# ---- Logging ----
loglevel=info
# logfile=~/.vectra/vectra.log
