Add single-node consensus configuration
- Create protocol.tutus.single.yml for local development - Update docker-compose to use consensus config with validator wallet - Magic 88890 for single-node, 1-second blocks, 1 validator 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
84a1caace1
commit
b67e4865b8
|
|
@ -0,0 +1,57 @@
|
|||
# Tutus Single-Node Consensus Configuration
|
||||
# For local development and testing
|
||||
|
||||
ProtocolConfiguration:
|
||||
Magic: 88890 # Tutus single-node identifier
|
||||
MaxTraceableBlocks: 200000
|
||||
TimePerBlock: 1s
|
||||
MaxTimePerBlock: 5s
|
||||
Genesis:
|
||||
TimePerBlock: 1s
|
||||
MemPoolSize: 50000
|
||||
StandbyCommittee:
|
||||
- 02b3622bf4017bdfe317c58aed5f4c753f206b7db896046fa7d774bbc4bf7f8dc2
|
||||
ValidatorsCount: 1
|
||||
SeedList:
|
||||
- localhost:10333
|
||||
VerifyTransactions: true
|
||||
P2PSigExtensions: true
|
||||
|
||||
ApplicationConfiguration:
|
||||
SkipBlockVerification: false
|
||||
DBConfiguration:
|
||||
Type: "leveldb"
|
||||
LevelDBOptions:
|
||||
DataDirectoryPath: "/chains/tutus-single"
|
||||
P2P:
|
||||
Addresses:
|
||||
- ":10333"
|
||||
DialTimeout: 3s
|
||||
ProtoTickInterval: 2s
|
||||
PingInterval: 30s
|
||||
PingTimeout: 90s
|
||||
MaxPeers: 10
|
||||
AttemptConnPeers: 5
|
||||
MinPeers: 0
|
||||
Relay: true
|
||||
Consensus:
|
||||
Enabled: true
|
||||
UnlockWallet:
|
||||
Path: "/wallet.json"
|
||||
Password: "one"
|
||||
RPC:
|
||||
Enabled: true
|
||||
Addresses:
|
||||
- ":10332"
|
||||
MaxGasInvoke: 100
|
||||
EnableCORSWorkaround: true
|
||||
SessionEnabled: true
|
||||
SessionLifetime: 300s
|
||||
Prometheus:
|
||||
Enabled: true
|
||||
Addresses:
|
||||
- ":2112"
|
||||
Pprof:
|
||||
Enabled: false
|
||||
Addresses:
|
||||
- ":2113"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
# Tutus Testnet - Single Node
|
||||
# Tutus Single-Node Consensus
|
||||
# Run: docker-compose up -d
|
||||
|
||||
networks:
|
||||
|
|
@ -19,9 +19,10 @@ services:
|
|||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
command: "node --config-file /config/protocol.tutus.testnet.yml --force-timestamp-logs"
|
||||
command: "node --config-file /config/protocol.tutus.single.yml --force-timestamp-logs"
|
||||
volumes:
|
||||
- tutus_chain:/chains
|
||||
- ./.docker/wallets/wallet1_solo.json:/wallet.json:ro
|
||||
ports:
|
||||
- "10333:10333" # P2P
|
||||
- "10332:10332" # RPC
|
||||
|
|
|
|||
Loading…
Reference in New Issue