From 9433f72cab1dc73555f8d3cd447b4b9dcc699e7e Mon Sep 17 00:00:00 2001 From: igneum-labs <337424239+igneum-labs@users.noreply.github.com> Date: Wed, 7 Oct 2026 13:21:15 +0000 Subject: [PATCH] tn-late-join harness: a resume wipes B's directory before the join Co-Authored-By: Claude Fable 5.1 --- infra/fast-time/tn-late-join.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infra/fast-time/tn-late-join.mjs b/infra/fast-time/tn-late-join.mjs index d546f5bbe..5d2573f17 100644 --- a/infra/fast-time/tn-late-join.mjs +++ b/infra/fast-time/tn-late-join.mjs @@ -189,7 +189,8 @@ const aSinkHeader = await a.headerOf(aAtJoin.sink); log(`A ready for the join: ${aAtJoin.blockCount} blocks, ${aAtJoin.headerCount} headers, daa ${aAtJoin.virtualDaaScore}, pruning point ${String(aAtJoin.pruningPointHash).slice(0, 8)}, sink ${String(aAtJoin.sink).slice(0, 8)} version ${aSinkHeader.version}`); if (!pruningMovedAt) { log(`SUMMARY FAIL (expect ${EXPECT}): A's pruning point never left genesis in ${MAX_MINE} s; the chain is too short for a headers-proof join`); await stopAll(); process.exit(1); } -// the fresh node +// the fresh node (on a resume, B's directory from an earlier join is wiped so B joins fresh) +if (RESUME) rmSync(`${TMP}/n1`, { recursive: true, force: true }); const b = await new Node(1, a.p2pPort).start(); const tj = Date.now(); let joined = null, proofLine = null, doneLine = null, lastJ = 0;