From 90f0075fd4365356b743763047d09df60a9cd4aa Mon Sep 17 00:00:00 2001 From: ZHU MINCHAO <48154958+MinchaoZhu@users.noreply.github.com> Date: Tue, 3 Nov 2026 11:22:27 +0800 Subject: [PATCH] Block reward 90, ASIC prices follow the new card price scale Co-Authored-By: Claude Sonnet 5.5 --- src/Decentralized.Domain/Mining.cs | 2 +- src/Decentralized.Domain/Tuning.cs | 2 +- tests/Decentralized.Domain.Tests/Program.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Decentralized.Domain/Mining.cs b/src/Decentralized.Domain/Mining.cs index 7bcc5d3..5360761 100644 --- a/src/Decentralized.Domain/Mining.cs +++ b/src/Decentralized.Domain/Mining.cs @@ -33,7 +33,7 @@ namespace Decentralized.Domain Gpu("RZX80Ti", Probidia, 8.0, 18, 1300), Gpu("RZX90", Probidia, 20.0, 30, 5000), Gpu("RZ470", Pmd, 0.8, 2.5, 170), Gpu("RZ580", Pmd, 1.2, 3, 250), Gpu("RZ6800", Pmd, 4.0, 8, 680), Gpu("RZ7900", Pmd, 15.0, 20, 4000), - Asic("M1", 50, 60, 6000), Asic("M2", 120, 110, 15000), Asic("M3", 300, 220, 40000), + Asic("M1", 50, 60, 11000), Asic("M2", 120, 110, 27000), Asic("M3", 300, 220, 72000), }.ToDictionary(s => s.Model); private static HardwareSpec Gpu(string model, string brand, double h, double kj, int price) => new HardwareSpec diff --git a/src/Decentralized.Domain/Tuning.cs b/src/Decentralized.Domain/Tuning.cs index a6cc4eb..63d169d 100644 --- a/src/Decentralized.Domain/Tuning.cs +++ b/src/Decentralized.Domain/Tuning.cs @@ -7,7 +7,7 @@ namespace Decentralized.Domain { // 挖矿 public const double PscStartPrice = 100; - public const double BlockReward = 50; + public const double BlockReward = 90; public const int HalvingDays = 90; public const double NpcHash0 = 360; public const double NpcKjPerH = 2.4; diff --git a/tests/Decentralized.Domain.Tests/Program.cs b/tests/Decentralized.Domain.Tests/Program.cs index 0a3f51f..d125ef8 100644 --- a/tests/Decentralized.Domain.Tests/Program.cs +++ b/tests/Decentralized.Domain.Tests/Program.cs @@ -89,11 +89,11 @@ internal static class Program Check(threw, "余额不足时拒绝"); }); - Test("挖矿:开局 1 H 每晚约 13.4 信用点;减半在第 90 天", () => + Test("挖矿:开局 1 H 每晚约 24.2 信用点;减半在第 90 天", () => { var net = new Network(); double perH = net.Mine(1) * Tuning.PscStartPrice; - Check(Near(perH, 13.4, 0.2), $"1 H 每晚约 13.4 信用点(抽成后):{perH:0.00}"); + Check(Near(perH, 24.2, 0.2), $"1 H 每晚约 24.2 信用点(抽成后):{perH:0.00}"); for (int d = 1; d <= 89; d++) net.Night(d, 100, 0); Check(net.Reward == Tuning.BlockReward, "第 89 天还没减半"); net.Night(90, 100, 0);