Skip to content

chore(archiver): l2proven number not required#12424

Merged
Maddiaa0 merged 3 commits intomasterfrom
md/remove-store-proven-epoch-number
Mar 4, 2025
Merged

chore(archiver): l2proven number not required#12424
Maddiaa0 merged 3 commits intomasterfrom
md/remove-store-proven-epoch-number

Conversation

@Maddiaa0
Copy link
Member

@Maddiaa0 Maddiaa0 commented Mar 3, 2025

Overview

After a discussion with @LHerskind, it appears that this is not required at all to work out if there have been reorgs, and it
is not used anywhere else.

The proven epoch is stored in the l1 contract, and the check in the archiver where it is used, is not required, as time is encoded
within the archive hash that is compared.

This pr just removes it

Copy link
Member Author

Maddiaa0 commented Mar 3, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

archiveForLocalPendingBlockNumber,
provenEpochNumber,
] = await this.rollup.read.status([localPendingBlockNumber], { blockNumber: currentL1BlockNumber });
const [provenBlockNumber, provenArchive, pendingBlockNumber, pendingArchive, archiveForLocalPendingBlockNumber] =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessarily for this pr, just got thinking, why are we using the viem contract directly in the archiver when we are using a RollupContract a bunch elsewhere (know there are a lot of both things around and about). Probably something we should look into at some point.

localProvenEpochNumber !== Number(provenEpochNumber) ||
localProvenBlockNumber !== Number(provenBlockNumber)
) {
const localProvenBlockNumber = await this.store.getProvenL2BlockNumber();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this is only used this once, so don't seem necessary to put it in a const 🤷 Fine to keep though.

@Maddiaa0 Maddiaa0 merged commit 13d3c0c into master Mar 4, 2025
7 checks passed
@Maddiaa0 Maddiaa0 deleted the md/remove-store-proven-epoch-number branch March 4, 2025 09:50
TomAFrench added a commit that referenced this pull request Mar 4, 2025
* master: (229 commits)
  feat: Sync from noir (#12315)
  fix: Only use debug logging for ENR mismatch (#12439)
  yolo upadate test pattern owners for kind tests
  fix: Don't exit on error when querying secret (#12438)
  fix: consolidate sepoliaETH job condition (#12437)
  chore: add `yq` to `bootstrap.sh check` (#12436)
  fix: ignition-testnet values & bot count (#12433)
  chore(archiver): l2proven number not required (#12424)
  chore: PXE oracle refactor (#12410)
  fix: txes handle sigint and sigterm, use dump fail to see any txe errors (#12427)
  git subrepo push --branch=master noir-projects/aztec-nr
  git_subrepo.sh: Fix parent in .gitrepo file. [skip ci]
  chore: replace relative paths to noir-protocol-circuits
  git subrepo push --branch=master barretenberg
  chore: set enrs and contract addresses in ignition-testnet (#12417)
  chore: reenable public teardown in orchestrator test (#12428)
  feat: add wasm mode for profiler (#12407)
  feat: contract instance/class cache for current tx - ensure that later txs in block cannot wipe out contracts created earlier (#12261)
  chore: pull out formatter changes from sync (#12426)
  chore: calculate available memory for noir-projects/bootstrap.sh memsuspend (#12419)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants