-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.template
More file actions
46 lines (36 loc) · 1.32 KB
/
config.template
File metadata and controls
46 lines (36 loc) · 1.32 KB
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
# Bitcoin Node Configuration Template
# Copy this file to .env and customize as needed
# Node Identity
NODE_ID=bitcoin-node
# Network Configuration
NETWORK=regtest # mainnet, testnet, or regtest
RPC_PORT=8332 # RPC server port
P2P_PORT=8333 # P2P network port
INITIAL_PEERS= # Comma-separated list of peer addresses
# Storage
DATA_DIR=./data/node # Data directory path
# Mining Configuration
MINING_ENABLED=false # Enable mining
MINER_ADDRESS= # Address to receive mining rewards
AUTO_MINE=false # Automatically mine blocks
MINE_INTERVAL=10 # Interval between auto-mining attempts (seconds)
# Logging
LOG_LEVEL=info # debug, info, warn, error
# Monitoring
ENABLE_MONITORING=false # Enable monitoring/metrics
# Example configurations for different node types:
# === Mining Node ===
# NODE_ID=miner1
# MINING_ENABLED=true
# MINER_ADDRESS=1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa
# AUTO_MINE=true
# MINE_INTERVAL=10
# === Full Node (non-mining) ===
# NODE_ID=fullnode
# MINING_ENABLED=false
# INITIAL_PEERS=localhost:18333,localhost:28333
# === Explorer/Monitoring Node ===
# NODE_ID=explorer
# MINING_ENABLED=false
# LOG_LEVEL=debug
# ENABLE_MONITORING=true