From cf481e413780c6152a71c2087b1d2ac395f92bd6 Mon Sep 17 00:00:00 2001 From: Tutus Development Date: Fri, 19 Dec 2025 15:29:28 +0000 Subject: [PATCH] Add Instance Beta for bridge testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Create protocol.tutus.beta.yml (Magic 88891) - Update docker-compose with Alpha and Beta services - Alpha: 172.201.0.10:10332, Beta: 172.201.0.11:11332 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- config/protocol.tutus.beta.yml | 57 ++++++++++++++++++++++++++++++++++ docker-compose.yml | 31 +++++++++++++++--- 2 files changed, 83 insertions(+), 5 deletions(-) create mode 100644 config/protocol.tutus.beta.yml diff --git a/config/protocol.tutus.beta.yml b/config/protocol.tutus.beta.yml new file mode 100644 index 0000000..a31698b --- /dev/null +++ b/config/protocol.tutus.beta.yml @@ -0,0 +1,57 @@ +# Tutus Instance Beta - Single-Node Consensus +# Second sovereign chain for bridge testing + +ProtocolConfiguration: + Magic: 88891 # Instance Beta identifier + MaxTraceableBlocks: 200000 + TimePerBlock: 1s + MaxTimePerBlock: 5s + Genesis: + TimePerBlock: 1s + MemPoolSize: 50000 + StandbyCommittee: + - 02103a7f7dd016558597f7960d27c516a4394fd968b9e65155eb4b013e4040406e + ValidatorsCount: 1 + SeedList: + - localhost:11333 + VerifyTransactions: true + P2PSigExtensions: true + +ApplicationConfiguration: + SkipBlockVerification: false + DBConfiguration: + Type: "leveldb" + LevelDBOptions: + DataDirectoryPath: "/chains/tutus-beta" + P2P: + Addresses: + - ":11333" + DialTimeout: 3s + ProtoTickInterval: 2s + PingInterval: 30s + PingTimeout: 90s + MaxPeers: 10 + AttemptConnPeers: 5 + MinPeers: 0 + Relay: true + Consensus: + Enabled: true + UnlockWallet: + Path: "/wallet.json" + Password: "two" + RPC: + Enabled: true + Addresses: + - ":11332" + MaxGasInvoke: 100 + EnableCORSWorkaround: true + SessionEnabled: true + SessionLifetime: 300s + Prometheus: + Enabled: true + Addresses: + - ":2113" + Pprof: + Enabled: false + Addresses: + - ":2114" diff --git a/docker-compose.yml b/docker-compose.yml index 7122a0f..0bee199 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -# Tutus Single-Node Consensus +# Tutus Multi-Instance Setup for Bridge Testing # Run: docker-compose up -d networks: @@ -10,18 +10,21 @@ networks: gateway: 172.201.0.254 volumes: - tutus_chain: + tutus_alpha_chain: + driver: local + tutus_beta_chain: driver: local services: - tutus: - container_name: tutus_node + # Instance Alpha - First sovereign chain + alpha: + container_name: tutus_alpha build: context: . dockerfile: Dockerfile command: "node --config-file /config/protocol.tutus.single.yml --force-timestamp-logs" volumes: - - tutus_chain:/chains + - tutus_alpha_chain:/chains - ./.docker/wallets/wallet1_solo.json:/wallet.json:ro ports: - "10333:10333" # P2P @@ -30,3 +33,21 @@ services: networks: tutus_network: ipv4_address: 172.201.0.10 + + # Instance Beta - Second sovereign chain + beta: + container_name: tutus_beta + build: + context: . + dockerfile: Dockerfile + command: "node --config-file /config/protocol.tutus.beta.yml --force-timestamp-logs" + volumes: + - tutus_beta_chain:/chains + - ./.docker/wallets/wallet2.json:/wallet.json:ro + ports: + - "11333:11333" # P2P + - "11332:11332" # RPC + - "2113:2113" # Prometheus + networks: + tutus_network: + ipv4_address: 172.201.0.11