@aztec/prover-client 5.0.0-private.20260319 → 5.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dest/config.d.ts +1 -1
- package/dest/config.d.ts.map +1 -1
- package/dest/config.js +16 -2
- package/dest/light/lightweight_checkpoint_builder.d.ts +1 -1
- package/dest/light/lightweight_checkpoint_builder.d.ts.map +1 -1
- package/dest/light/lightweight_checkpoint_builder.js +15 -5
- package/dest/mocks/test_context.d.ts +11 -11
- package/dest/mocks/test_context.d.ts.map +1 -1
- package/dest/mocks/test_context.js +25 -28
- package/dest/orchestrator/block-building-helpers.d.ts +1 -1
- package/dest/orchestrator/checkpoint-proving-state.d.ts +20 -36
- package/dest/orchestrator/checkpoint-proving-state.d.ts.map +1 -1
- package/dest/orchestrator/checkpoint-proving-state.js +22 -120
- package/dest/orchestrator/checkpoint-sub-tree-orchestrator.d.ts +161 -0
- package/dest/orchestrator/checkpoint-sub-tree-orchestrator.d.ts.map +1 -0
- package/dest/orchestrator/{orchestrator.js → checkpoint-sub-tree-orchestrator.js} +267 -451
- package/dest/orchestrator/chonk-cache.d.ts +39 -0
- package/dest/orchestrator/chonk-cache.d.ts.map +1 -0
- package/dest/orchestrator/chonk-cache.js +80 -0
- package/dest/orchestrator/index.d.ts +4 -2
- package/dest/orchestrator/index.d.ts.map +1 -1
- package/dest/orchestrator/index.js +3 -1
- package/dest/orchestrator/proving-scheduler.d.ts +81 -0
- package/dest/orchestrator/proving-scheduler.d.ts.map +1 -0
- package/dest/orchestrator/proving-scheduler.js +120 -0
- package/dest/orchestrator/top-tree-orchestrator.d.ts +88 -0
- package/dest/orchestrator/top-tree-orchestrator.d.ts.map +1 -0
- package/dest/orchestrator/top-tree-orchestrator.js +232 -0
- package/dest/orchestrator/top-tree-proving-state.d.ts +61 -0
- package/dest/orchestrator/top-tree-proving-state.d.ts.map +1 -0
- package/dest/orchestrator/top-tree-proving-state.js +185 -0
- package/dest/prover-client/prover-client.d.ts +61 -4
- package/dest/prover-client/prover-client.d.ts.map +1 -1
- package/dest/prover-client/prover-client.js +54 -7
- package/dest/proving_broker/broker_prover_facade.d.ts +1 -1
- package/dest/proving_broker/broker_prover_facade.d.ts.map +1 -1
- package/dest/proving_broker/broker_prover_facade.js +10 -16
- package/dest/proving_broker/config.d.ts +8 -72
- package/dest/proving_broker/config.d.ts.map +1 -1
- package/dest/proving_broker/config.js +2 -2
- package/dest/proving_broker/index.d.ts +2 -1
- package/dest/proving_broker/index.d.ts.map +1 -1
- package/dest/proving_broker/index.js +1 -0
- package/dest/proving_broker/proving_broker.d.ts +2 -2
- package/dest/proving_broker/proving_broker.d.ts.map +1 -1
- package/dest/proving_broker/proving_broker.js +32 -7
- package/dest/proving_broker/proving_broker_database/persisted.js +2 -2
- package/dest/proving_broker/rpc.d.ts +3 -1
- package/dest/proving_broker/rpc.d.ts.map +1 -1
- package/dest/proving_broker/rpc.js +80 -24
- package/dest/test/epoch_settlement.d.ts +36 -0
- package/dest/test/epoch_settlement.d.ts.map +1 -0
- package/dest/test/epoch_settlement.js +52 -0
- package/dest/test/index.d.ts +2 -0
- package/dest/test/index.d.ts.map +1 -0
- package/dest/test/index.js +1 -0
- package/dest/test/mock_prover.d.ts +3 -3
- package/package.json +19 -18
- package/src/config.ts +18 -2
- package/src/light/lightweight_checkpoint_builder.ts +16 -6
- package/src/mocks/test_context.ts +24 -41
- package/src/orchestrator/checkpoint-proving-state.ts +21 -162
- package/src/orchestrator/{orchestrator.ts → checkpoint-sub-tree-orchestrator.ts} +415 -661
- package/src/orchestrator/chonk-cache.ts +99 -0
- package/src/orchestrator/index.ts +8 -1
- package/src/orchestrator/proving-scheduler.ts +160 -0
- package/src/orchestrator/top-tree-orchestrator.ts +384 -0
- package/src/orchestrator/top-tree-proving-state.ts +219 -0
- package/src/prover-client/prover-client.ts +128 -18
- package/src/proving_broker/broker_prover_facade.ts +8 -16
- package/src/proving_broker/config.ts +2 -1
- package/src/proving_broker/index.ts +1 -0
- package/src/proving_broker/proving_broker.ts +27 -5
- package/src/proving_broker/proving_broker_database/persisted.ts +2 -2
- package/src/proving_broker/rpc.ts +36 -24
- package/src/test/epoch_settlement.ts +82 -0
- package/src/test/index.ts +1 -0
- package/dest/orchestrator/epoch-proving-state.d.ts +0 -75
- package/dest/orchestrator/epoch-proving-state.d.ts.map +0 -1
- package/dest/orchestrator/epoch-proving-state.js +0 -269
- package/dest/orchestrator/orchestrator.d.ts +0 -130
- package/dest/orchestrator/orchestrator.d.ts.map +0 -1
- package/dest/prover-client/server-epoch-prover.d.ts +0 -32
- package/dest/prover-client/server-epoch-prover.d.ts.map +0 -1
- package/dest/prover-client/server-epoch-prover.js +0 -40
- package/src/orchestrator/epoch-proving-state.ts +0 -380
- package/src/prover-client/server-epoch-prover.ts +0 -69
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH } from '@aztec/constants';
|
|
2
|
+
import { type LoggerBindings } from '@aztec/foundation/log';
|
|
3
|
+
import type { L2Block } from '@aztec/stdlib/block';
|
|
4
|
+
import type { PublicInputsAndRecursiveProof } from '@aztec/stdlib/interfaces/server';
|
|
5
|
+
import type { PublicChonkVerifierPublicInputs } from '@aztec/stdlib/rollup';
|
|
6
|
+
/** Result of a chonk-verifier proof, cached by tx hash. */
|
|
7
|
+
export type ChonkVerifierProofResult = PublicInputsAndRecursiveProof<PublicChonkVerifierPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>;
|
|
8
|
+
/**
|
|
9
|
+
* Shared cache of `getPublicChonkVerifierProof` results, keyed by tx hash.
|
|
10
|
+
*
|
|
11
|
+
* Owned by the prover-node and shared across every epoch / session: a tx remined into
|
|
12
|
+
* a different block (e.g. after a brief L1 reorg) reuses the already-computed chonk
|
|
13
|
+
* proof rather than redoing it. Entries are released via `releaseForBlocks` once the
|
|
14
|
+
* containing block is no longer interesting to the caller (e.g. its epoch's proof
|
|
15
|
+
* submission window has expired).
|
|
16
|
+
*/
|
|
17
|
+
export declare class ChonkCache {
|
|
18
|
+
private readonly cache;
|
|
19
|
+
private readonly pending;
|
|
20
|
+
private readonly log;
|
|
21
|
+
private stopped;
|
|
22
|
+
constructor(bindings?: LoggerBindings);
|
|
23
|
+
/** Returns the cached promise for `txHash`, or `undefined` if none is registered. */
|
|
24
|
+
get(txHash: string): Promise<ChonkVerifierProofResult> | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Atomic get-or-compute: returns the cached promise for `txHash`, or runs `factory`
|
|
27
|
+
* (passing an AbortSignal the cache controls) and caches its result. Concurrent
|
|
28
|
+
* callers for the same `txHash` share the same promise.
|
|
29
|
+
*
|
|
30
|
+
* Rejected promises are evicted so a future caller can retry. The factory's
|
|
31
|
+
* AbortSignal fires when the cache is stopped.
|
|
32
|
+
*/
|
|
33
|
+
getOrCompute(txHash: string, factory: (signal: AbortSignal) => Promise<ChonkVerifierProofResult>): Promise<ChonkVerifierProofResult>;
|
|
34
|
+
/** Drops cache entries for every tx in the supplied blocks. */
|
|
35
|
+
releaseForBlocks(blocks: L2Block[]): void;
|
|
36
|
+
/** Aborts every in-flight chonk-verifier job and clears the cache. */
|
|
37
|
+
stop(): void;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hvbmstY2FjaGUuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9vcmNoZXN0cmF0b3IvY2hvbmstY2FjaGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEVBQUUseUNBQXlDLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNsRixPQUFPLEVBQWUsS0FBSyxjQUFjLEVBQWdCLE1BQU0sdUJBQXVCLENBQUM7QUFDdkYsT0FBTyxLQUFLLEVBQUUsT0FBTyxFQ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|
+
{"version":3,"file":"chonk-cache.d.ts","sourceRoot":"","sources":["../../src/orchestrator/chonk-cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,kBAAkB,CAAC;AAClF,OAAO,EAAe,KAAK,cAAc,EAAgB,MAAM,uBAAuB,CAAC;AACvF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AAE5E,2DAA2D;AAC3D,MAAM,MAAM,wBAAwB,GAAG,6BAA6B,CAClE,+BAA+B,EAC/B,OAAO,yCAAyC,CACjD,CAAC;AAEF;;;;;;;;GAQG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwD;IAC9E,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAsC;IAC9D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAS;IAC7B,OAAO,CAAC,OAAO,CAAS;IAExB,YAAY,QAAQ,CAAC,EAAE,cAAc,EAEpC;IAED,qFAAqF;IAC9E,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC,GAAG,SAAS,CAExE;IAED;;;;;;;OAOG;IACI,YAAY,CACjB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,wBAAwB,CAAC,GAClE,OAAO,CAAC,wBAAwB,CAAC,CAmBnC;IAED,+DAA+D;IACxD,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAe/C;IAED,sEAAsE;IAC/D,IAAI,IAAI,IAAI,CAUlB;CACF"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { createLogger } from '@aztec/foundation/log';
|
|
2
|
+
/**
|
|
3
|
+
* Shared cache of `getPublicChonkVerifierProof` results, keyed by tx hash.
|
|
4
|
+
*
|
|
5
|
+
* Owned by the prover-node and shared across every epoch / session: a tx remined into
|
|
6
|
+
* a different block (e.g. after a brief L1 reorg) reuses the already-computed chonk
|
|
7
|
+
* proof rather than redoing it. Entries are released via `releaseForBlocks` once the
|
|
8
|
+
* containing block is no longer interesting to the caller (e.g. its epoch's proof
|
|
9
|
+
* submission window has expired).
|
|
10
|
+
*/ export class ChonkCache {
|
|
11
|
+
cache = new Map();
|
|
12
|
+
pending = new Map();
|
|
13
|
+
log;
|
|
14
|
+
stopped = false;
|
|
15
|
+
constructor(bindings){
|
|
16
|
+
this.log = createLogger('prover-client:chonk-cache', bindings);
|
|
17
|
+
}
|
|
18
|
+
/** Returns the cached promise for `txHash`, or `undefined` if none is registered. */ get(txHash) {
|
|
19
|
+
return this.cache.get(txHash);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Atomic get-or-compute: returns the cached promise for `txHash`, or runs `factory`
|
|
23
|
+
* (passing an AbortSignal the cache controls) and caches its result. Concurrent
|
|
24
|
+
* callers for the same `txHash` share the same promise.
|
|
25
|
+
*
|
|
26
|
+
* Rejected promises are evicted so a future caller can retry. The factory's
|
|
27
|
+
* AbortSignal fires when the cache is stopped.
|
|
28
|
+
*/ getOrCompute(txHash, factory) {
|
|
29
|
+
if (this.stopped) {
|
|
30
|
+
return Promise.reject(new Error('ChonkCache is stopped'));
|
|
31
|
+
}
|
|
32
|
+
const existing = this.cache.get(txHash);
|
|
33
|
+
if (existing) {
|
|
34
|
+
return existing;
|
|
35
|
+
}
|
|
36
|
+
const controller = new AbortController();
|
|
37
|
+
this.pending.set(txHash, controller);
|
|
38
|
+
this.log.debug(`Enqueueing chonk-verifier circuit`, {
|
|
39
|
+
txHash
|
|
40
|
+
});
|
|
41
|
+
const promise = factory(controller.signal).finally(()=>this.pending.delete(txHash));
|
|
42
|
+
// Silently observe the rejection branch and evict so a retry is possible.
|
|
43
|
+
promise.catch((err)=>{
|
|
44
|
+
this.cache.delete(txHash);
|
|
45
|
+
this.log.debug(`Chonk-verifier proof failed; evicted from cache`, {
|
|
46
|
+
txHash,
|
|
47
|
+
error: `${err}`
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
this.cache.set(txHash, promise);
|
|
51
|
+
return promise;
|
|
52
|
+
}
|
|
53
|
+
/** Drops cache entries for every tx in the supplied blocks. */ releaseForBlocks(blocks) {
|
|
54
|
+
let released = 0;
|
|
55
|
+
for (const block of blocks){
|
|
56
|
+
for (const txEffect of block.body.txEffects){
|
|
57
|
+
if (this.cache.delete(txEffect.txHash.toString())) {
|
|
58
|
+
released++;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
if (released > 0) {
|
|
63
|
+
this.log.debug(`Released ${released} chonk-verifier cache entries`, {
|
|
64
|
+
blockCount: blocks.length,
|
|
65
|
+
releasedCount: released
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/** Aborts every in-flight chonk-verifier job and clears the cache. */ stop() {
|
|
70
|
+
if (this.stopped) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
this.stopped = true;
|
|
74
|
+
for (const controller of this.pending.values()){
|
|
75
|
+
controller.abort();
|
|
76
|
+
}
|
|
77
|
+
this.pending.clear();
|
|
78
|
+
this.cache.clear();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
1
|
+
export { CheckpointSubTreeOrchestrator, type SubTreeResult } from './checkpoint-sub-tree-orchestrator.js';
|
|
2
|
+
export { ChonkCache, type ChonkVerifierProofResult } from './chonk-cache.js';
|
|
3
|
+
export { TopTreeOrchestrator, TopTreeCancelledError, type CheckpointTopTreeData, type TopTreeResult, } from './top-tree-orchestrator.js';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9vcmNoZXN0cmF0b3IvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLDZCQUE2QixFQUFFLEtBQUssYUFBYSxFQUFFLE1BQU0sdUNBQXVDLENBQUM7QUFDMUcsT0FBTyxFQUFFLFVBQVUsRUFBRSxLQUFLLHdCQUF3QixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDN0UsT0FBTyxFQUNMLG1CQUFtQixFQUNuQixxQkFBcUIsRUFDckIsS0FBSyxxQkFBcUIsRUFDMUIsS0FBSyxhQUFhLEdBQ25CLE1BQU0sNEJBQTRCLENBQUMifQ==
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/orchestrator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/orchestrator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,KAAK,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC1G,OAAO,EAAE,UAAU,EAAE,KAAK,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,aAAa,GACnB,MAAM,4BAA4B,CAAC"}
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { CheckpointSubTreeOrchestrator } from './checkpoint-sub-tree-orchestrator.js';
|
|
2
|
+
export { ChonkCache } from './chonk-cache.js';
|
|
3
|
+
export { TopTreeOrchestrator, TopTreeCancelledError } from './top-tree-orchestrator.js';
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { type Logger, type LoggerBindings } from '@aztec/foundation/log';
|
|
2
|
+
import { SerialQueue } from '@aztec/foundation/queue';
|
|
3
|
+
/**
|
|
4
|
+
* Minimal surface a deferred-proving state must expose. Both `CheckpointProvingState` /
|
|
5
|
+
* `BlockProvingState` (used by `CheckpointSubTreeOrchestrator`) and `TopTreeProvingState`
|
|
6
|
+
* (used by `TopTreeOrchestrator`) satisfy it.
|
|
7
|
+
*/
|
|
8
|
+
export interface ProvingStateLike {
|
|
9
|
+
/** Returns false once the state has been cancelled or otherwise invalidated. */
|
|
10
|
+
verifyState(): boolean;
|
|
11
|
+
/** Surfaces a proving error to the state's owner. */
|
|
12
|
+
reject(reason: string): void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Common scheduling infrastructure shared by every orchestrator that drives broker
|
|
16
|
+
* proving jobs:
|
|
17
|
+
*
|
|
18
|
+
* - A shared `SerialQueue` (`deferredJobQueue`) that serialises the *act of handing a
|
|
19
|
+
* job to the broker*, one initiation per event-loop tick. Each queue task kicks off
|
|
20
|
+
* `safeJob` (which submits to the broker) without awaiting it, then yields with
|
|
21
|
+
* `sleep(0)`; the next task therefore runs on the following macrotask. This does NOT
|
|
22
|
+
* cap how many broker jobs are concurrently in flight — the broker's own queue absorbs
|
|
23
|
+
* that. What it bounds is the burst rate: a sub-tree that synchronously discovers
|
|
24
|
+
* thousands of ready jobs can't flood the broker (and monopolise the event loop) in a
|
|
25
|
+
* single tick. The queue is owned by the `ProverClient` and shared across every
|
|
26
|
+
* orchestrator (every sub-tree and top-tree across every concurrent epoch session), so
|
|
27
|
+
* this pacing is applied once globally rather than once-per-orchestrator.
|
|
28
|
+
* - A list of `AbortController`s (`pendingProvingJobs`) so a `cancel()` can abort
|
|
29
|
+
* in-flight broker jobs when needed.
|
|
30
|
+
* - A `deferredProving<T>(state, request, callback, isCancelled?)` method that wraps
|
|
31
|
+
* a broker request in the standard "submit, drop result if state invalidated, push
|
|
32
|
+
* errors to state.reject" envelope.
|
|
33
|
+
*
|
|
34
|
+
* Subclasses own their own concrete proving state and define `cancelInternal()` for
|
|
35
|
+
* the rest of the cleanup work (closing world-state forks, marking sub-trees
|
|
36
|
+
* cancelled, etc.). Because the queue is shared, neither `cancel()` nor `stop()` touch
|
|
37
|
+
* it — they only abort this orchestrator's in-flight broker jobs. Queued-but-unrun jobs
|
|
38
|
+
* for a cancelled orchestrator no-op via the guards in `deferredProving`.
|
|
39
|
+
*/
|
|
40
|
+
export declare abstract class ProvingScheduler {
|
|
41
|
+
private readonly deferredJobQueue;
|
|
42
|
+
protected pendingProvingJobs: AbortController[];
|
|
43
|
+
protected logger: Logger;
|
|
44
|
+
constructor(deferredJobQueue: SerialQueue, loggerName?: string, bindings?: LoggerBindings);
|
|
45
|
+
/** Number of broker jobs currently in flight. */
|
|
46
|
+
getNumPendingProvingJobs(): number;
|
|
47
|
+
/**
|
|
48
|
+
* Optionally aborts every in-flight broker job. Aborting is the right choice on
|
|
49
|
+
* reorg-driven cancel (where the in-flight inputs are no longer valid) and the
|
|
50
|
+
* wrong choice on shutdown (where leaving jobs in the broker queue lets a restart
|
|
51
|
+
* pick them up). The shared queue is not touched — queued-but-unrun jobs belonging
|
|
52
|
+
* to this orchestrator no-op once their controller is aborted (or once their state
|
|
53
|
+
* is marked invalid by the subclass).
|
|
54
|
+
*/
|
|
55
|
+
protected resetSchedulerState(abortJobs: boolean): void;
|
|
56
|
+
/**
|
|
57
|
+
* Subclass-defined cancellation. Implementations call `resetSchedulerState(...)`
|
|
58
|
+
* and then do their own cleanup (close world-state forks, propagate cancel into
|
|
59
|
+
* the proving state, etc.).
|
|
60
|
+
*/
|
|
61
|
+
protected abstract cancelInternal(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Standard stop: cancel this orchestrator's work. The shared queue is owned by the
|
|
64
|
+
* `ProverClient` and outlives every orchestrator, so it is not drained here.
|
|
65
|
+
*/
|
|
66
|
+
stop(): Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* Submits a broker request. The returned-via-callback result is dropped if the
|
|
69
|
+
* state has become invalid (re-org, cancellation) by the time it lands. Errors
|
|
70
|
+
* are routed to `state.reject` unless they are abort-driven or the state is
|
|
71
|
+
* already invalid (in which case they're a stale echo of the cancel).
|
|
72
|
+
*
|
|
73
|
+
* @param state - Object exposing `verifyState()` and `reject()`.
|
|
74
|
+
* @param request - The broker call. Receives the controller's signal.
|
|
75
|
+
* @param callback - Runs on success, after `verifyState()` is checked.
|
|
76
|
+
* @param isCancelled - Optional extra cancellation predicate (e.g. a `cancelled`
|
|
77
|
+
* flag the subclass maintains independently of the state). Defaults to never.
|
|
78
|
+
*/
|
|
79
|
+
protected deferredProving<S extends ProvingStateLike, T>(state: S, request: (signal: AbortSignal) => Promise<T>, callback: (result: T) => void | Promise<void>, isCancelled?: () => boolean): void;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmluZy1zY2hlZHVsZXIuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9vcmNoZXN0cmF0b3IvcHJvdmluZy1zY2hlZHVsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLEtBQUssTUFBTSxFQUFFLEtBQUssY0FBYyxFQUFnQixNQUFNLHVCQUF1QixDQUFDO0FBQ3ZGLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUd0RDs7OztHQUlHO0FBQ0gsTUFBTSxXQUFXLGdCQUFnQjtJQUMvQixnRkFBZ0Y7SUFDaEYsV0FBVyxJQUFJLE9BQU8sQ0FBQztJQUN2QixxREFBcUQ7SUFDckQsTUFBTSxDQUFDLE1BQU0sRUFBRSxNQUFNLEdBQUcsSUFBSSxDQUFDO0NBQzlCO0FBRUQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0F5Qkc7QUFDSCw4QkFBc0IsZ0JBQWdCO0lBS2xDLE9BQU8sQ0FBQ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undation/log';
|
|
3
|
+
import { sleep } from '@aztec/foundation/sleep';
|
|
4
|
+
/**
|
|
5
|
+
* Common scheduling infrastructure shared by every orchestrator that drives broker
|
|
6
|
+
* proving jobs:
|
|
7
|
+
*
|
|
8
|
+
* - A shared `SerialQueue` (`deferredJobQueue`) that serialises the *act of handing a
|
|
9
|
+
* job to the broker*, one initiation per event-loop tick. Each queue task kicks off
|
|
10
|
+
* `safeJob` (which submits to the broker) without awaiting it, then yields with
|
|
11
|
+
* `sleep(0)`; the next task therefore runs on the following macrotask. This does NOT
|
|
12
|
+
* cap how many broker jobs are concurrently in flight — the broker's own queue absorbs
|
|
13
|
+
* that. What it bounds is the burst rate: a sub-tree that synchronously discovers
|
|
14
|
+
* thousands of ready jobs can't flood the broker (and monopolise the event loop) in a
|
|
15
|
+
* single tick. The queue is owned by the `ProverClient` and shared across every
|
|
16
|
+
* orchestrator (every sub-tree and top-tree across every concurrent epoch session), so
|
|
17
|
+
* this pacing is applied once globally rather than once-per-orchestrator.
|
|
18
|
+
* - A list of `AbortController`s (`pendingProvingJobs`) so a `cancel()` can abort
|
|
19
|
+
* in-flight broker jobs when needed.
|
|
20
|
+
* - A `deferredProving<T>(state, request, callback, isCancelled?)` method that wraps
|
|
21
|
+
* a broker request in the standard "submit, drop result if state invalidated, push
|
|
22
|
+
* errors to state.reject" envelope.
|
|
23
|
+
*
|
|
24
|
+
* Subclasses own their own concrete proving state and define `cancelInternal()` for
|
|
25
|
+
* the rest of the cleanup work (closing world-state forks, marking sub-trees
|
|
26
|
+
* cancelled, etc.). Because the queue is shared, neither `cancel()` nor `stop()` touch
|
|
27
|
+
* it — they only abort this orchestrator's in-flight broker jobs. Queued-but-unrun jobs
|
|
28
|
+
* for a cancelled orchestrator no-op via the guards in `deferredProving`.
|
|
29
|
+
*/ export class ProvingScheduler {
|
|
30
|
+
deferredJobQueue;
|
|
31
|
+
pendingProvingJobs;
|
|
32
|
+
logger;
|
|
33
|
+
constructor(deferredJobQueue, loggerName = 'prover-client:proving-scheduler', bindings){
|
|
34
|
+
this.deferredJobQueue = deferredJobQueue;
|
|
35
|
+
this.pendingProvingJobs = [];
|
|
36
|
+
this.logger = createLogger(loggerName, bindings);
|
|
37
|
+
}
|
|
38
|
+
/** Number of broker jobs currently in flight. */ getNumPendingProvingJobs() {
|
|
39
|
+
return this.pendingProvingJobs.length;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Optionally aborts every in-flight broker job. Aborting is the right choice on
|
|
43
|
+
* reorg-driven cancel (where the in-flight inputs are no longer valid) and the
|
|
44
|
+
* wrong choice on shutdown (where leaving jobs in the broker queue lets a restart
|
|
45
|
+
* pick them up). The shared queue is not touched — queued-but-unrun jobs belonging
|
|
46
|
+
* to this orchestrator no-op once their controller is aborted (or once their state
|
|
47
|
+
* is marked invalid by the subclass).
|
|
48
|
+
*/ resetSchedulerState(abortJobs) {
|
|
49
|
+
if (abortJobs) {
|
|
50
|
+
for (const controller of this.pendingProvingJobs){
|
|
51
|
+
controller.abort();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Standard stop: cancel this orchestrator's work. The shared queue is owned by the
|
|
57
|
+
* `ProverClient` and outlives every orchestrator, so it is not drained here.
|
|
58
|
+
*/ stop() {
|
|
59
|
+
this.cancelInternal();
|
|
60
|
+
return Promise.resolve();
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Submits a broker request. The returned-via-callback result is dropped if the
|
|
64
|
+
* state has become invalid (re-org, cancellation) by the time it lands. Errors
|
|
65
|
+
* are routed to `state.reject` unless they are abort-driven or the state is
|
|
66
|
+
* already invalid (in which case they're a stale echo of the cancel).
|
|
67
|
+
*
|
|
68
|
+
* @param state - Object exposing `verifyState()` and `reject()`.
|
|
69
|
+
* @param request - The broker call. Receives the controller's signal.
|
|
70
|
+
* @param callback - Runs on success, after `verifyState()` is checked.
|
|
71
|
+
* @param isCancelled - Optional extra cancellation predicate (e.g. a `cancelled`
|
|
72
|
+
* flag the subclass maintains independently of the state). Defaults to never.
|
|
73
|
+
*/ deferredProving(state, request, callback, isCancelled = ()=>false) {
|
|
74
|
+
if (!state.verifyState()) {
|
|
75
|
+
this.logger.debug(`Not enqueuing job, state no longer valid`);
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
const controller = new AbortController();
|
|
79
|
+
this.pendingProvingJobs.push(controller);
|
|
80
|
+
// We use a 'safeJob'. We don't want promise rejections in the proving pool — we
|
|
81
|
+
// want to capture the error here and reject the proving state while keeping the
|
|
82
|
+
// event loop free of rejections.
|
|
83
|
+
const safeJob = async ()=>{
|
|
84
|
+
try {
|
|
85
|
+
if (controller.signal.aborted) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
const result = await request(controller.signal);
|
|
89
|
+
if (controller.signal.aborted || !state.verifyState() || isCancelled()) {
|
|
90
|
+
this.logger.debug(`State no longer valid, discarding result`);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
await callback(result);
|
|
94
|
+
} catch (err) {
|
|
95
|
+
if (err instanceof AbortError || isCancelled()) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if (!state.verifyState()) {
|
|
99
|
+
this.logger.debug(`State no longer valid, discarding error from proving job`, err);
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
this.logger.error(`Error thrown when proving job`, err);
|
|
103
|
+
state.reject(`${err}`);
|
|
104
|
+
} finally{
|
|
105
|
+
const idx = this.pendingProvingJobs.indexOf(controller);
|
|
106
|
+
if (idx > -1) {
|
|
107
|
+
this.pendingProvingJobs.splice(idx, 1);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
void this.deferredJobQueue.put(async ()=>{
|
|
112
|
+
// Kick off the broker submission without awaiting it — awaiting here would serialise all
|
|
113
|
+
// proving (one job at a time) and kill parallelism. The `sleep(0)` yields the event loop
|
|
114
|
+
// so the next queued job initiates on the following macrotask, pacing bursts rather than
|
|
115
|
+
// bounding in-flight broker concurrency (the broker's own queue handles that).
|
|
116
|
+
void safeJob();
|
|
117
|
+
await sleep(0);
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { type FinalBlobBatchingChallenges } from '@aztec/blob-lib';
|
|
2
|
+
import type { BatchedBlob } from '@aztec/blob-lib/types';
|
|
3
|
+
import { type ARCHIVE_HEIGHT, type NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH } from '@aztec/constants';
|
|
4
|
+
import type { EpochNumber } from '@aztec/foundation/branded-types';
|
|
5
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
6
|
+
import type { LoggerBindings } from '@aztec/foundation/log';
|
|
7
|
+
import type { SerialQueue } from '@aztec/foundation/queue';
|
|
8
|
+
import type { Tuple } from '@aztec/foundation/serialize';
|
|
9
|
+
import type { EthAddress } from '@aztec/stdlib/block';
|
|
10
|
+
import type { PublicInputsAndRecursiveProof, ServerCircuitProver } from '@aztec/stdlib/interfaces/server';
|
|
11
|
+
import type { Proof } from '@aztec/stdlib/proofs';
|
|
12
|
+
import { type BlockRollupPublicInputs, type RootRollupPublicInputs } from '@aztec/stdlib/rollup';
|
|
13
|
+
import type { BlockHeader } from '@aztec/stdlib/tx';
|
|
14
|
+
import { type TelemetryClient } from '@aztec/telemetry-client';
|
|
15
|
+
import { ProvingScheduler } from './proving-scheduler.js';
|
|
16
|
+
/** Per-checkpoint data fed into the top tree. */
|
|
17
|
+
export type CheckpointTopTreeData = {
|
|
18
|
+
/**
|
|
19
|
+
* Block-rollup proof outputs from the checkpoint's sub-tree. Passed as a Promise so the
|
|
20
|
+
* top tree can start (compute hints, pipeline merges) while sub-trees are still proving.
|
|
21
|
+
* The promise resolves to 1 entry for a single-block checkpoint, 2 for multi-block.
|
|
22
|
+
*/
|
|
23
|
+
blockProofs: Promise<PublicInputsAndRecursiveProof<BlockRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>[]>;
|
|
24
|
+
/** L2-to-L1 messages per block in the checkpoint, used to compute the out hash. */
|
|
25
|
+
l2ToL1MsgsPerBlock: Fr[][][];
|
|
26
|
+
/** Blob fields encoding the checkpoint's tx effects, used to compute the blob accumulator. */
|
|
27
|
+
blobFields: Fr[];
|
|
28
|
+
/** Header of the last block in the previous checkpoint (or the epoch's predecessor for index 0). */
|
|
29
|
+
previousBlockHeader: BlockHeader;
|
|
30
|
+
/** Sibling path of the archive tree before any block in this checkpoint landed. */
|
|
31
|
+
previousArchiveSiblingPath: Tuple<Fr, typeof ARCHIVE_HEIGHT>;
|
|
32
|
+
};
|
|
33
|
+
/** Result of proving the top tree. */
|
|
34
|
+
export type TopTreeResult = {
|
|
35
|
+
publicInputs: RootRollupPublicInputs;
|
|
36
|
+
proof: Proof;
|
|
37
|
+
batchedBlobInputs: BatchedBlob;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Sentinel thrown by `cancel` so callers can distinguish reorg-driven cancellation from
|
|
41
|
+
* a genuine proving failure (and choose to rebuild + retry instead of failing the epoch).
|
|
42
|
+
*/
|
|
43
|
+
export declare class TopTreeCancelledError extends Error {
|
|
44
|
+
constructor(reason?: string);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Drives proving from checkpoint root rollups through the epoch root rollup. Owns no
|
|
48
|
+
* world-state forks or tx processing — every input is supplied by the caller.
|
|
49
|
+
*
|
|
50
|
+
* Pipelined start: `prove()` does not wait for block-level proving. It pre-computes the
|
|
51
|
+
* out-hash and blob-accumulator hint chains immediately from archiver-derivable data,
|
|
52
|
+
* and each checkpoint's root rollup fires the moment its sub-tree's `blockProofs`
|
|
53
|
+
* promise resolves. Later checkpoints can still be block-level proving in parallel.
|
|
54
|
+
*/
|
|
55
|
+
export declare class TopTreeOrchestrator extends ProvingScheduler {
|
|
56
|
+
protected readonly prover: ServerCircuitProver;
|
|
57
|
+
private readonly proverId;
|
|
58
|
+
private state;
|
|
59
|
+
private cancelled;
|
|
60
|
+
constructor(prover: ServerCircuitProver, proverId: EthAddress, deferredJobQueue: SerialQueue, _telemetryClient?: TelemetryClient, bindings?: LoggerBindings);
|
|
61
|
+
getProverId(): EthAddress;
|
|
62
|
+
/**
|
|
63
|
+
* Proves the top tree from per-checkpoint data and pending block-proofs promises.
|
|
64
|
+
* Resolves with the final epoch proof, or rejects with `TopTreeCancelledError` if
|
|
65
|
+
* `cancel()` is invoked, or any other error if a circuit fails.
|
|
66
|
+
*/
|
|
67
|
+
prove(epochNumber: EpochNumber, totalNumCheckpoints: number, finalBlobBatchingChallenges: FinalBlobBatchingChallenges, checkpointData: CheckpointTopTreeData[]): Promise<TopTreeResult>;
|
|
68
|
+
/**
|
|
69
|
+
* Cancels in-flight proving. If `abortJobs` is true, each pending broker job is aborted
|
|
70
|
+
* (used on reorg, when the surviving checkpoint set differs and the in-flight jobs'
|
|
71
|
+
* inputs are no longer valid). On shutdown the caller passes `false` so jobs remain in
|
|
72
|
+
* the broker queue for reuse on restart.
|
|
73
|
+
*/
|
|
74
|
+
cancel({ abortJobs }: {
|
|
75
|
+
abortJobs: boolean;
|
|
76
|
+
}): void;
|
|
77
|
+
/** Standard shutdown — preserve the broker queue (`abortJobs: false`). */
|
|
78
|
+
protected cancelInternal(): void;
|
|
79
|
+
private enqueueCheckpointRoot;
|
|
80
|
+
private buildCheckpointRootInputs;
|
|
81
|
+
private enqueueCheckpointMergeRollup;
|
|
82
|
+
private enqueueEpochPadding;
|
|
83
|
+
private enqueueRootRollup;
|
|
84
|
+
private checkAndEnqueueNextCheckpointMergeRollup;
|
|
85
|
+
private checkAndEnqueueRootRollup;
|
|
86
|
+
private computeOutHashHints;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9wLXRyZWUtb3JjaGVzdHJhdG9yLmQudHMiLCJzb3VyY2VSb290Ij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