Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Implement earliest_batch_number_to_sign (BFT-474) #2410

Merged
merged 4 commits into from
Jul 9, 2024

Conversation

aakoshh
Copy link
Contributor

@aakoshh aakoshh commented Jul 9, 2024

What ❔

Implements matter-labs/era-consensus#150

Removes unsigned_batch_numbers and adds earliest_batch_number_to_sign instead.

The PR also enables PersistentBatchStore::persisted() now that matter-labs/era-consensus#152 has been merged.

Why ❔

With the new signing loop this query runs only once at startup, after which we only query the latest batch number and sign everything new, so it's altogether cheaper.

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.

@aakoshh aakoshh changed the title refactor: Use earliest_batch_number_to_sign (BFT-474) refactor: Implement earliest_batch_number_to_sign (BFT-474) Jul 9, 2024
@aakoshh aakoshh force-pushed the bft-474-earliest-batch-to-sign branch 2 times, most recently from 48f275b to ab02630 Compare July 9, 2024 12:10
@aakoshh aakoshh force-pushed the bft-474-poll-db-and-sign-batch branch from 5f43aff to ba0d8b2 Compare July 9, 2024 15:16
@aakoshh aakoshh force-pushed the bft-474-earliest-batch-to-sign branch from ab02630 to 5f76d17 Compare July 9, 2024 15:46
@aakoshh aakoshh force-pushed the bft-474-poll-db-and-sign-batch branch from ba0d8b2 to 512a789 Compare July 9, 2024 16:24
@aakoshh aakoshh force-pushed the bft-474-earliest-batch-to-sign branch from 5f76d17 to 14ea5d7 Compare July 9, 2024 16:26
brunoffranca pushed a commit to matter-labs/era-consensus that referenced this pull request Jul 9, 2024
## What ❔

Bumps the version to 0.1.0-rc.2

## Why ❔

So that we can merge matter-labs/zksync-era#2399
and matter-labs/zksync-era#2410
Base automatically changed from bft-474-poll-db-and-sign-batch to bft-474-l1-batch-signing July 9, 2024 19:28
@aakoshh aakoshh force-pushed the bft-474-earliest-batch-to-sign branch from 14ea5d7 to e584719 Compare July 9, 2024 19:30
@aakoshh aakoshh merged commit cc4ac24 into bft-474-l1-batch-signing Jul 9, 2024
41 of 42 checks passed
@aakoshh aakoshh deleted the bft-474-earliest-batch-to-sign branch July 9, 2024 19:32
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