137 lines
2.6 KiB
TOML
137 lines
2.6 KiB
TOML
# NAC主网部署配置
|
|
# NewAssetChain Mainnet Configuration
|
|
# 版本: 1.0.0
|
|
# 更新时间: 2026-02-15
|
|
|
|
[network]
|
|
# 网络名称
|
|
name = "NAC Mainnet"
|
|
# 网络ID
|
|
chain_id = 1
|
|
# 网络类型
|
|
network_type = "mainnet"
|
|
|
|
[consensus]
|
|
# 共识协议: CBPP (Constitutional Block Production Protocol)
|
|
protocol = "CBPP"
|
|
# 流体区块初始软上限 (字节)
|
|
initial_soft_limit = 1048576 # 1MB
|
|
# 流体区块最大软上限 (字节)
|
|
max_soft_limit = 8388608 # 8MB
|
|
# 最小出块间隔 (毫秒)
|
|
min_block_interval = 100
|
|
# 目标出块时间 (秒)
|
|
target_block_time = 3
|
|
|
|
[cbp]
|
|
# 宪法区块生产者配置
|
|
# 最小质押数量 (XTZH)
|
|
min_stake = 100000
|
|
# 最大CBP数量
|
|
max_cbp_count = 21
|
|
# CBP选举周期 (区块数)
|
|
election_cycle = 86400 # 约3天
|
|
|
|
[network_protocol]
|
|
# CSNP (Constitutional Structured Network Protocol)
|
|
protocol = "CSNP"
|
|
# P2P端口
|
|
p2p_port = 30303
|
|
# RPC端口
|
|
rpc_port = 8545
|
|
# WebSocket端口
|
|
ws_port = 8546
|
|
# 最大连接数
|
|
max_peers = 50
|
|
|
|
[vm]
|
|
# NVM虚拟机配置
|
|
# Gas限制
|
|
gas_limit = 30000000
|
|
# Gas价格 (最小单位)
|
|
min_gas_price = 1
|
|
|
|
[state]
|
|
# 状态树配置
|
|
# Merkle树深度
|
|
merkle_depth = 32
|
|
# 快照间隔 (区块数)
|
|
snapshot_interval = 10000
|
|
|
|
[acc_protocol]
|
|
# ACC (Asset Constitutional Compliance) 协议配置
|
|
# ACC-20增强协议
|
|
acc20_enabled = true
|
|
# ACC-721 NFT协议
|
|
acc721_enabled = true
|
|
# ACC-1155多代币协议
|
|
acc1155_enabled = true
|
|
|
|
[xtzh]
|
|
# XTZH稳定币配置
|
|
# SDR锚定
|
|
sdr_pegged = true
|
|
# 黄金储备比例
|
|
gold_reserve_ratio = 0.3
|
|
# AI估值引擎
|
|
ai_valuation_enabled = true
|
|
# AI合规审批
|
|
ai_compliance_enabled = true
|
|
|
|
[governance]
|
|
# 治理配置
|
|
# 提案最小质押
|
|
min_proposal_stake = 10000
|
|
# 投票周期 (区块数)
|
|
voting_period = 28800 # 约1天
|
|
# 执行延迟 (区块数)
|
|
execution_delay = 86400 # 约3天
|
|
|
|
[security]
|
|
# 安全配置
|
|
# 启用宪法收据验证
|
|
constitutional_receipt_enabled = true
|
|
# 启用GNACS资产分类
|
|
gnacs_enabled = true
|
|
# 启用主权规则验证
|
|
sovereignty_rules_enabled = true
|
|
|
|
[logging]
|
|
# 日志配置
|
|
level = "info"
|
|
# 日志文件路径
|
|
log_file = "/var/log/nac/mainnet.log"
|
|
# 日志轮转大小 (MB)
|
|
max_log_size = 100
|
|
|
|
[database]
|
|
# 数据库配置
|
|
# 数据库类型
|
|
db_type = "rocksdb"
|
|
# 数据库路径
|
|
db_path = "/var/lib/nac/mainnet"
|
|
# 缓存大小 (MB)
|
|
cache_size = 1024
|
|
|
|
[api]
|
|
# API配置
|
|
# 启用HTTP API
|
|
http_enabled = true
|
|
# 启用WebSocket API
|
|
ws_enabled = true
|
|
# CORS允许的源
|
|
cors_origins = ["*"]
|
|
# API速率限制 (请求/秒)
|
|
rate_limit = 100
|
|
|
|
[monitoring]
|
|
# 监控配置
|
|
# 启用性能监控
|
|
performance_monitoring = true
|
|
# 启用健康检查
|
|
health_check = true
|
|
# 健康检查端口
|
|
health_check_port = 9090
|
|
# Prometheus metrics端口
|
|
metrics_port = 9091
|