Minter Docsv3.3.0
Validators / Node setup and configuration
Validators

Node setup and configuration

Hardware profiles, OS RLIMIT_NOFILE limits, building Minter Go Node v3.3.0, port matrix 26656..28843, config.toml profiles, and pruning old state versions.

The minter binary (Minter Go Node v3.3.0, commit 235a4a2f7a69452e1a3be50d91b5a51bcc0d2ada) runs consensus, ExecutorV3 transaction execution, and state tree commits inside a single OS process (cmd/minter/cmd/node.go:200-254; see node overview). Disk fsync latency and file descriptor limits determine whether a validator signs within the nominal 5 s block interval.

Hardware profiles by node role

Node roleCPU (x86_64)Memory (RAM)Local disk (NVMe SSD)config.toml profile
Validator8+ dedicated cores (>= 3.2 GHz)16..32 GB ECC500 GB .. 1 TB NVMe (>= 40k IOPS)Private tunnel to Sentry nodes, validator_mode = true, keep_last_states = 120, pex = false
Sentry node8 cores (>= 3.0 GHz)16..32 GB1 TB NVMePublic :26656, validator_mode = true, pex = true
Full RPC / Gate node8..16 cores32..64 GB1.5..2 TB NVMevalidator_mode = false (writes events.db and tx_index.db), keep_last_states = 1000..5000
Archive node16+ cores64+ GB ECC4+ TB NVMevalidator_mode = false, keep_last_states = 100000+
Use local NVMe disks instead of network block storage

On every Prevote and Precommit step, the node flushes tmdata/cs.wal and priv_validator_state.json with synchronous fsync. Latency spikes above 10 ms on network-attached volumes cause missed votes; missing more than 12 of the last 24 blocks disables the candidate and imposes a 17,280-block jail (see the penalty table).

OS preparation and RLIMIT_NOFILE

At startup, checkRlimits() (cmd/minter/cmd/node.go) inspects the open file descriptor limit (ulimit -n) and aborts startup when:

text
RLIMIT_NOFILE < 10000 + state_mem_available

Set ulimit -n >= 65535, synchronize the system clock via chrony, install gcc for CGO_ENABLED=1, and create an unprivileged minter user (Ubuntu 22.04 / 24.04 LTS or Debian 12):

bash
sudo apt-get update && sudo apt-get install -y \
  build-essential git curl jq zstd lz4 chrony ca-certificates

timedatectl status | grep -E "System clock synchronized|NTP service"

sudo useradd --system --create-home --home-dir /var/lib/minter --shell /usr/sbin/nologin minter
sudo mkdir -p /var/lib/minter/.minter/config /var/lib/minter/.minter/data
sudo chown -R minter:minter /var/lib/minter

Building Minter Go Node v3.3.0

Build the node with Go Modules (Go 1.21+) without $GOPATH. Pass CGO_ENABLED=1 and -tags "minter gcc" to link the C libsecp256k1 library:

bash
git clone --branch v3.3.0 https://github.com/MinterTeam/minter-go-node.git /tmp/minter-go-node
cd /tmp/minter-go-node
git rev-parse HEAD
# 235a4a2f7a69452e1a3be50d91b5a51bcc0d2ada

CGO_ENABLED=1 go build \
  -tags "minter gcc" \
  -ldflags "-s -w -X github.com/MinterTeam/minter-go-node/version.Version=3.3.0" \
  -o /tmp/minter \
  ./cmd/minter

sudo install -m 0755 /tmp/minter /usr/local/bin/minter
minter version

On a node with HTTP API v2 enabled, verify sync status and the node public key:

bash
curl -sS http://localhost:28843/v2/status | jq '{
  version,
  network,
  latest_block_height,
  catching_up,
  keep_last_states,
  public_key
}'

Network ports and config.toml

Application settings and embedded Tendermint v0.34.19 parameters live in ~/.minter/config/config.toml. If api_v2_listen_addr and api_v2_grpc_listen_addr are omitted, config/config.go falls back to :8842 and :8843, so declare both addresses explicitly.

Port or socketProtocolconfig.toml keyAccess rulePurpose
26656TCPp2p.laddrPublic on Sentry and RPC nodes; private tunnel on validatorsBlock, consensus vote, and mempool gossip
26657TCPrpc.laddrlocalhost:26657 onlyInternal Tendermint JSON-RPC and /websocket
28842TCPapi_v2_grpc_listen_addrInternal network or TLS proxy on RPC nodes (disabled on validators)Minter Node gRPC API v2 (ApiService)
28843TCPapi_v2_listen_addrRate-limited reverse proxy on RPC nodes (disabled on validators)Minter Node HTTP API v2 (/v2/* via node-grpc-gateway)
26660TCPinstrumentation.prometheus_listen_addrlocalhost or private monitoring networkPrometheus metrics endpoint (/metrics)
manager.sockUnix~/.minter/manager.sockMode 0600, user minterLocal minter console administration socket

Private validator profile (validator_mode = true)

On a signing validator, disable public API v2 listeners, events.db writes, and transaction tag indexing:

toml
moniker = "validator-01"
validator_mode = true
keep_last_states = 120
state_cache_size = 1000000
state_mem_available = 2048
halt_height = 0

api_v2_enabled = false
api_v2_listen_addr = "localhost:28843"
api_v2_grpc_listen_addr = "localhost:28842"

[rpc]
laddr = "tcp://localhost:26657"

[p2p]
laddr = "tcp://172.16.0.2:26656"
pex = false
persistent_peers = "<sentry1_node_id>@172.16.0.11:26656,<sentry2_node_id>@172.16.0.12:26656"
unconditional_peer_ids = "<sentry1_node_id>,<sentry2_node_id>"
addr_book_strict = false
send_rate = 20480000
recv_rate = 20480000

[mempool]
size = 10000
max_txs_bytes = 536870912
cache_size = 20000

[tx_index]
indexer = "null"

[instrumentation]
prometheus = true
prometheus_listen_addr = "localhost:26660"

Public RPC / Gate profile (validator_mode = false)

An RPC node serves /v2/*, maintains events.db and tx_index.db, and keeps recent state versions for ?height= queries:

toml
moniker = "rpc-01"
validator_mode = false
keep_last_states = 5000
state_cache_size = 2000000
state_mem_available = 4096

api_v2_enabled = true
api_v2_listen_addr = "localhost:28843"
api_v2_grpc_listen_addr = "localhost:28842"
api_v2_timeout = "15s"

snapshot_interval = 5000
snapshot_keep_recent = 2

[rpc]
laddr = "tcp://localhost:26657"

[p2p]
laddr = "tcp://0.0.0.0:26656"
pex = true
max_num_inbound_peers = 60
max_num_outbound_peers = 20

[tx_index]
indexer = "kv"

Memory and halt parameters:

  • keep_last_states (int64 >= 1) sets the number of recent IAVL versions retained in data/state.db (120 on validators, 1000..5000 on RPC nodes, 100000+ on archive nodes).
  • state_cache_size (int) configures the in-memory IAVL node LRU cache (1000000 by default; 2000000 on hosts with 32+ GB RAM).
  • state_mem_available (int, MB) allocates memory for goleveldb block caches and write buffers; ulimit -n must satisfy >= 10000 + state_mem_available.
  • halt_height (uint64) stops the process cleanly after committing the specified block height (0 disables local halt).

Running under systemd and Docker

Set LimitNOFILE=65535 and TimeoutStopSec=120 in /etc/systemd/system/minter.service so goleveldb flushes cleanly on SIGTERM:

ini
[Unit]
Description=Minter Go Node v3.3.0
After=network-online.target time-sync.target
Wants=network-online.target

[Service]
Type=simple
User=minter
Group=minter
WorkingDirectory=/var/lib/minter
ExecStart=/usr/local/bin/minter node --home-dir=/var/lib/minter/.minter
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
TimeoutStopSec=120
KillSignal=SIGTERM
NoNewPrivileges=true
PrivateTmp=true

[Install]
WantedBy=multi-user.target

Enable and follow the service logs:

bash
sudo systemctl daemon-reload
sudo systemctl enable --now minter
sudo journalctl -u minter -f -o cat

When running in Docker, pass --ulimit nofile=65535:65535 and --stop-timeout 120, and mount /var/lib/minter/.minter directly from a host NVMe partition rather than overlay2:

bash
docker run -d \
  --name minter-node \
  --restart unless-stopped \
  --ulimit nofile=65535:65535 \
  --stop-timeout 120 \
  -p 26656:26656 \
  -v /var/lib/minter/.minter:/minter/.minter \
  minterteam/minter:v3.3.0 \
  minter node --home-dir=/minter/.minter

Directory layout and state retention

text
~/.minter/
├── config/
│   ├── config.toml               # Minter and Tendermint configuration
│   ├── genesis.json              # Chain genesis document
│   ├── node_key.json             # Ed25519 P2P transport key (NodeID)
│   └── priv_validator_key.json   # Ed25519 consensus signing key (Mp...)
├── data/
│   ├── priv_validator_state.json # FilePV last-signed state (high-water mark)
│   ├── state.db/                 # Versioned IAVL v0.17.3 subtrees
│   ├── app.db/                   # Height, emission, versions, and tariff metadata
│   ├── events.db/                # Block events index (when validator_mode = false)
│   ├── snapshots/                # State Sync snapshots
│   └── tmdata/
│       ├── blockstore.db/        # Raw Tendermint blocks and commits
│       ├── state.db/             # Tendermint consensus state
│       ├── tx_index.db/          # SHA-256 transaction index (Mt...)
│       ├── evidence.db/          # DuplicateVoteEvidence store
│       └── cs.wal/               # Consensus write-ahead log
└── manager.sock                  # Local administration Unix socket

Restoring from a state archive

  1. Stop minter.service.
  2. When restoring on an active validator host, back up /var/lib/minter/.minter/data/priv_validator_state.json outside the data directory first. Extract state.db, app.db, and tmdata/, then copy the saved priv_validator_state.json back into data/; replacing it with { "height": "0" } risks double-signing.
  3. Reset ownership with sudo chown -R minter:minter /var/lib/minter/.minter, start minter.service, and wait until /v2/status reports "catching_up": false.

Pruning old state versions

Both keep_last_states and prune_blocks delete historical IAVL versions from data/state.db without shrinking data/tmdata/blockstore.db or tx_index.db. To prune a height range online through manager.sock:

bash
sudo -u minter minter console --home-dir=/var/lib/minter/.minter --execute="available_versions"

sudo -u minter minter console --home-dir=/var/lib/minter/.minter \
  --execute="prune_blocks --from=1 --to=15000000"

sudo du -sh /var/lib/minter/.minter/data/*