Wallets: expected-days drain, copy/paste, three-column selectable balances, rename and destroy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZHU MINCHAOandClaude Opus 5.5 committed 2026-11-03 23:05:13 +08:00
1 parent 783f73989d
commit 2b781acd82
10 files changed
+178 -22

No files matched your search

+4 -1
View File
@@ -37,9 +37,12 @@ namespace Decentralized
public Wallet Own(string address) => Wallets.Find(w => ChainAddress.Same(w.Address, address));
/// <summary>钱包编号:每添加一个加一,销毁后不回收,名字不会错位。</summary>
public int WalletSeq;
public Wallet AddWallet(bool poisoned)
{
var w = new Wallet { Address = ChainAddress.Make(Rng.NextUInt()), Poisoned = poisoned };
var w = new Wallet { Address = ChainAddress.Make(Rng.NextUInt()), Poisoned = poisoned, Name = (++WalletSeq).ToString() };
Wallets.Add(w);
return w;
}