-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduces a new prover node package, which spawns a new prover that follows the proven chain, and exposes a high-level method for proving an unfinalised block. This involves fetching the tx hashes from L1, requesting the individual txs from a tx source (today a remote Aztec node), running the tx processor using a world-state synced to the last proven block, using the prover orchestrator to prove, and the l1 publisher to submit the proof back to L1. Below is an example of a node and a prover node running side by side with the following commands: ``` ETHEREUM_HOST='http://localhost:8545' DEPLOY_AZTEC_CONTRACTS=true SEQ_SKIP_SUBMIT_PROOFS=1 SEQ_PUBLISHER_PRIVATE_KEY=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d \ yarn aztec start --node --sequencer --prover --archiver --pxe ``` ``` LOG_LEVEL=verbose ETHEREUM_HOST='http://localhost:8545' AZTEC_NODE_URL='http://localhost:8080' \ yarn aztec start -p 8090 --prover-node --prover --archiver ``` [Screencast from 2024-07-19 18-42-27.webm](https://github.com/user-attachments/assets/556edf0e-9843-481a-a488-1a497728194f) See #7346
- Loading branch information
1 parent
689000a
commit 609a68f
Showing
89 changed files
with
1,604 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { type AztecKVStore } from '@aztec/kv-store'; | ||
import { type TelemetryClient } from '@aztec/telemetry-client'; | ||
import { NoopTelemetryClient } from '@aztec/telemetry-client/noop'; | ||
|
||
import { Archiver } from './archiver/archiver.js'; | ||
import { type ArchiverConfig } from './archiver/config.js'; | ||
import { KVArchiverDataStore } from './archiver/index.js'; | ||
import { createArchiverClient } from './rpc/archiver_client.js'; | ||
|
||
export function createArchiver( | ||
config: ArchiverConfig, | ||
store: AztecKVStore, | ||
telemetry: TelemetryClient = new NoopTelemetryClient(), | ||
opts: { blockUntilSync: boolean } = { blockUntilSync: true }, | ||
) { | ||
if (!config.archiverUrl) { | ||
// first create and sync the archiver | ||
const archiverStore = new KVArchiverDataStore(store, config.maxLogs); | ||
return Archiver.createAndSync(config, archiverStore, telemetry, opts.blockUntilSync); | ||
} else { | ||
return createArchiverClient(config.archiverUrl); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.