LumiWave Protocol

Sentry & RPC Node Setup

Detailed configuration guide for sentry nodes and RPC/API nodes

This document describes a recommended example configuration. In production, you should adjust the node architecture and settings based on your traffic volume, security requirements, and budget.

Network Architecture

LayerNodeRole
ExternalRPC Node (A, B)External service API, full indexing
MiddleSentry NodeDDoS protection, peer relay, IBC Relayer (Hermes)
InternalValidatorBlock signing (pex=false, connects only to Sentry)
IBCExternal ChainsCross-chain connections via Sentry

Traffic flow: External Services → RPC → Sentry → Validator

Sentry Node Configuration

The sentry node is a DDoS protection layer that shields the validator from external networks.

config.toml

pex = true
persistent_peers = "<VALIDATOR_NODE_ID>@<VALIDATOR_IP>:26656"
# Do not expose the validator address to external peers
private_peer_ids = "<VALIDATOR_NODE_ID>"

app.toml

# Keep only minimal state
pruning = "everything"

# Disable API (handled by RPC node)
[api]
enable = false

The Hermes IBC relayer can be co-located on the sentry node, eliminating the need for a separate server. If traffic increases, separate it to a dedicated server.

RPC/API Node Configuration (Service-Optimized)

The RPC node is the core of external service integration, maintaining full history and indexing.

config.toml

[tx_index]
indexer = "kv"  # Required for TX queries

[rpc]
laddr = "tcp://0.0.0.0:26657"
max_open_connections = 1000          # External service connections
max_subscription_clients = 200
max_subscriptions_per_client = 50
timeout_broadcast_tx_commit = "30s"

# WebSocket (for real-time block/TX detection)
experimental_subscription_buffer_size = 2000
experimental_websocket_write_buffer_size = 2000

app.toml

# Keep full history
pruning = "nothing"

[api]
enable = true
swagger = true
max-open-connections = 1000

[grpc]
enable = true
address = "0.0.0.0:9090"

[state-sync]
snapshot-interval = 2000

Node Configuration Summary

SettingValidatorSentryRPC
pexfalsetruetrue
pruningcustomeverythingnothing
APIdisableddisabledenabled (0.0.0.0)
gRPClocalhostlocalhost (Hermes)enabled (0.0.0.0)
RPClocalhostlocalhost0.0.0.0 (External)
Indexernullnullkv

Service Integration Checklist

ItemStatusNotes
TX Indexing✅ kv configuredMaintained on RPC node
REST API✅ EnabledEnabled on RPC node only
gRPC✅ EnabledRequired for SDK integration
WebSocket⚙️ Configuration neededBuffer size increased
Swagger docs✅ EnabledAPI documentation
State-sync snapshot✅ 2000Fast sync for new nodes

On this page