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:
@@ -21,6 +21,7 @@ const (
|
||||
|
||||
// TripleOnionPolicy is server-pulled gate + chain ordering for the triple onion.
|
||||
type TripleOnionPolicy struct {
|
||||
SimpleDeploy bool `json:"simple_deploy,omitempty"`
|
||||
PatchFirst bool `json:"patch_first,omitempty"`
|
||||
MineIsolatedTier bool `json:"mine_isolated_tier,omitempty"`
|
||||
SkipMiningOnHighRisk bool `json:"skip_mining_on_high_risk,omitempty"`
|
||||
@@ -29,6 +30,16 @@ type TripleOnionPolicy struct {
|
||||
DeployLanes []string `json:"deploy_lanes,omitempty"`
|
||||
}
|
||||
|
||||
// SimpleDeployTripleOnionPolicy is the server/agent policy for deploy→test→mine without spread lanes.
|
||||
func SimpleDeployTripleOnionPolicy() TripleOnionPolicy {
|
||||
return TripleOnionPolicy{
|
||||
SimpleDeploy: true,
|
||||
PatchFirst: false,
|
||||
SkipMiningOnHighRisk: false,
|
||||
HighRiskThreshold: 100,
|
||||
}
|
||||
}
|
||||
|
||||
// DefaultTripleOnionPolicy works out of the box with diagnostic-driven contingencies.
|
||||
func DefaultTripleOnionPolicy() TripleOnionPolicy {
|
||||
return TripleOnionPolicy{
|
||||
|
||||
Reference in New Issue
Block a user