Block reward 90, ASIC prices follow the new card price scale

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ZHU MINCHAOandClaude Sonnet 5.5 committed 2026-11-03 11:22:27 +08:00
1 parent 4196151f7e
commit 90f0075fd4
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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
+1 -1
View File
@@ -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;
+2 -2
View File
@@ -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);