fast-time key-succession harness: the carried-once check reads the RPC-first node's 'now carried by' line as well

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
igneum-josh 2026-10-07 14:19:44 +01:00
parent 1269a4b3e1
commit 56ce4b60ba

View file

@ -109,7 +109,7 @@ process.on('SIGINT', async () => { await stopAll(); process.exit(130); });
process.on('unhandledRejection', async (e) => { log(`FAILED: ${e?.stack || e}`); await stopAll(); process.exit(3); });
const minerLog = (name) => { try { return readFileSync(`${TMP}/${name}.log`, 'utf8').split('\n'); } catch { return []; } };
const keyHash = (label) => (spawnSync(CPU_MINER, ['key-hash', label], { encoding: 'utf8' }).stdout || '').trim();
const CARRIED_LINE = /hands its weight and its forfeit term to .* carried by/;
const CARRIED_LINE = /hands its weight and its forfeit term to .*(carried by|now carried by)/;
const LOCK_LINE = /Finality: checkpoint (\d+) LOCKED/;
const t0 = Date.now();