版本 1.0.0-rc8:卖货橱窗重构、收款币种、Gas 档位速度、区块自然增长、钱包持仓
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
018ee7d0d2
commit
93e26fc4f5
20 files changed
+582
-498
No files matched your search
@@ -82,9 +82,9 @@ namespace Decentralized
|
||||
/// <summary>出块动画的时间表:签名 0.8 秒,内存池 1.2 秒,打包 1 秒,每次确认 0.6 秒;拥堵时按档位放慢。</summary>
|
||||
private static float[] Timeline(int confs, double slow, bool dropped)
|
||||
{
|
||||
var t = new List<float> { 0.8f, 0.8f + 1.2f * (float)slow };
|
||||
var t = new List<float> { 0.8f * (float)slow, (0.8f + 1.2f) * (float)slow };
|
||||
if (dropped) { t.Add(t[1] + 1.5f * (float)slow); return t.ToArray(); }
|
||||
t.Add(t[1] + 1.0f);
|
||||
t.Add(t[1] + 1.0f * (float)slow);
|
||||
for (int i = 0; i < confs; i++) t.Add(t[t.Count - 1] + 0.6f * (float)slow);
|
||||
return t.ToArray();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user