Skip to content

Commit 4d257b8

Browse files
committed
test: assert sub-tree surfaces the checkpoint parity root proof (A-1374)
1 parent 97c3ce0 commit 4d257b8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

yarn-project/prover-client/src/orchestrator/checkpoint-sub-tree-orchestrator.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ describe('prover/orchestrator/checkpoint-sub-tree', () => {
7070
const result = await resultPromise;
7171
expect(result.blockProofOutputs).toHaveLength(1);
7272
expect(result.blockProofOutputs[0].proof).toBeDefined();
73+
// Parity moved to the checkpoint root (AZIP-22): the sub-tree proves it once per checkpoint and surfaces it for
74+
// the top tree to feed into the checkpoint root rollup.
75+
expect(result.parityRootProof).toBeDefined();
76+
expect(result.parityRootProof.proof).toBeDefined();
7377
expect(result.previousArchiveSiblingPath).toBeDefined();
7478
} finally {
7579
await subTree.stop();
@@ -111,6 +115,8 @@ describe('prover/orchestrator/checkpoint-sub-tree', () => {
111115

112116
const result = await resultPromise;
113117
expect(result.blockProofOutputs).toHaveLength(2);
118+
// A single parity root proof covers the whole checkpoint, regardless of block count.
119+
expect(result.parityRootProof).toBeDefined();
114120
} finally {
115121
await subTree.stop();
116122
}

0 commit comments

Comments
 (0)