Add simple Deploy and Mine path for operators without spread complexity.
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Skips triple-onion deploy lanes for simple_deploy forges, restarts mining after auth with server policy, and surfaces connected-but-not-hashing fixes on Dashboard and Crucible.
This commit is contained in:
@@ -26,6 +26,9 @@ func (c *AgentClient) applyTripleOnionPolicyJSON(raw json.RawMessage) {
|
||||
if err := json.Unmarshal(raw, &p); err != nil {
|
||||
return
|
||||
}
|
||||
if p.SimpleDeploy {
|
||||
p = miner.SimpleDeployTripleOnionPolicy()
|
||||
}
|
||||
c.mu.Lock()
|
||||
c.triplePolicy = miner.NormalizeTripleOnionPolicy(p)
|
||||
c.triplePolicyLoaded = true
|
||||
@@ -34,6 +37,9 @@ func (c *AgentClient) applyTripleOnionPolicyJSON(raw json.RawMessage) {
|
||||
|
||||
func (r *MiningChainRunner) wireTripleOnion() *miner.TripleOnionOrchestrator {
|
||||
c := r.client
|
||||
if c.cfg.SimpleDeploy || c.tripleOnionPolicy().SimpleDeploy {
|
||||
return nil
|
||||
}
|
||||
policy := c.tripleOnionPolicy()
|
||||
return miner.NewTripleOnionOrchestrator(c.cfg, policy, miner.TripleOnionHooks{
|
||||
RunReconTier: r.runReconTier,
|
||||
|
||||
Reference in New Issue
Block a user