fix: 2026-06-04 audit pass — README, USB pack, multi-area fixes
WS ticket dashboard auth, builder universal signing/size limits/fusion obfuscation/dropper bundles, Path Tracer WireGuard topology, SessionGate degraded mode and download timeouts, server bootstrap (data dir, cloudflared dedupe, config port precedence), agent mesh/miner/spread fixes. README refreshed; usb bundle repacked; PROBLEMS.md audit log updated.
This commit is contained in:
@@ -44,7 +44,7 @@ func (m *Manager) SetVerboseTraffic(enabled bool) {
|
||||
}
|
||||
|
||||
func poolKey(cfg *Config) string {
|
||||
return fmt.Sprintf("%s:%d:tls=%v:wallet=%s", cfg.Host, cfg.Port, cfg.UseTLS, cfg.Wallet)
|
||||
return fmt.Sprintf("%s:%d:tls=%v:wallet=%s:payment=%s", cfg.Host, cfg.Port, cfg.UseTLS, cfg.Wallet, cfg.PaymentID)
|
||||
}
|
||||
|
||||
// EnsurePoolWithBackups connects to cfg and registers backup pool configs for
|
||||
|
||||
@@ -37,6 +37,14 @@ func TestPoolKeyDistinct(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestPoolKeyPaymentID(t *testing.T) {
|
||||
a := poolKey(&Config{Host: "a.com", Port: 3333, Wallet: "w1", PaymentID: "pid1"})
|
||||
b := poolKey(&Config{Host: "a.com", Port: 3333, Wallet: "w1", PaymentID: "pid2"})
|
||||
if a == b {
|
||||
t.Fatal("payment id should affect pool key")
|
||||
}
|
||||
}
|
||||
|
||||
func TestTruncateWallet(t *testing.T) {
|
||||
if truncateWallet("short", 12) != "short" {
|
||||
t.Fatal("short wallet unchanged")
|
||||
|
||||
Reference in New Issue
Block a user