Start simple-deploy mining immediately after C2 auth.
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
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user