File size: 2,092 Bytes
d086025 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | # Configuration Reference
> Complete reference for all Guts node configuration options.
## Configuration Methods
Guts supports three configuration methods, in order of precedence:
1. **Command-line flags** (highest priority)
2. **Environment variables**
3. **Configuration file** (lowest priority)
## Configuration File
Default location: `config.yaml` (current directory) or `/etc/guts/config.yaml`
### Full Configuration Example
## Environment Variables
All configuration options can be set via environment variables:
| Variable | Description | Default |
|----------|-------------|---------|
| `GUTS_API_ADDR` | HTTP API listen address | `127.0.0.1:8080` |
| `GUTS_P2P_ADDR` | P2P listen address | `0.0.0.0:9000` |
| `GUTS_METRICS_ADDR` | Metrics listen address | `0.0.0.0:9090` |
| `GUTS_DATA_DIR` | Data directory | `./data` |
| `GUTS_LOG_LEVEL` | Log level | `info` |
| `GUTS_LOG_FORMAT` | Log format | `json` |
| `GUTS_PRIVATE_KEY` | Node private key (hex) | - |
| `GUTS_PRIVATE_KEY_FILE` | Path to private key file | - |
| `GUTS_BOOTSTRAP_NODES` | Bootstrap nodes (comma-separated) | - |
| `GUTS_CONSENSUS_ENABLED` | Enable consensus | `false` |
| `GUTS_CONSENSUS_USE_SIMPLEX_BFT` | Use Simplex BFT | `false` |
| `GUTS_CONSENSUS_BLOCK_TIME_MS` | Block time (ms) | `2000` |
| `GUTS_CONSENSUS_MAX_TXS_PER_BLOCK` | Max TXs per block | `1000` |
| `GUTS_CONSENSUS_MEMPOOL_MAX_TXS` | Max mempool size | `10000` |
| `GUTS_CONSENSUS_MEMPOOL_TTL_SECS` | Mempool TTL | `600` |
| `GUTS_CONSENSUS_GENESIS_FILE` | Genesis file path | - |
| `GUTS_STORAGE_BACKEND` | Storage backend | `rocksdb` |
| `GUTS_REQUEST_TIMEOUT_SECS` | Request timeout | `30` |
## Command-Line Flags
## Configuration Validation
The node validates configuration on startup:
## Example Configurations
### Development Node
### Production Full Node
### Validator Node
## Genesis File Format
For validator networks:
## Related Documentation
- [Networking Configuration](networking.md)
- [Storage Configuration](storage.md)
- [Security Configuration](security.md)
- [Performance Tuning](performance.md)
|