-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(en): Fix operator address assignment for ENs (#688)
## What ❔ - Moves `fee_account_address` from the `l1_batches` table to the `miniblocks` table using a combined SQL and programmatic migration. - Replaces uses of `l1_gas_price`, `l2_fair_gas_price` and `base_fee_per_gas` from `l1_batches` to the corresponding `miniblocks` fields. Removes uses of `l1_batches.is_finished`. - Updates `L1BatchHeader` / `MiniblockHeader` correspondingly. ## Why ❔ Currently, operator address is not persisted for miniblocks, but only for L1 batches. This has several negative implications: - ENs cannot be used to synchronize other ENs since SyncBlock.operator_address they return may be bogus. - We have nowhere to get the real operator address for gossip-based syncing as well. ## Checklist - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [x] Tests for the changes have been added / updated. - [x] Documentation comments have been added / updated. - [x] Code has been formatted via `zk fmt` and `zk lint`. - [x] Spellcheck has been run via `cargo spellcheck --cfg=./spellcheck/era.cfg --code 1`.
- Loading branch information
Showing
74 changed files
with
2,543 additions
and
2,230 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
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
15 changes: 15 additions & 0 deletions
15
...lib/dal/.sqlx/query-0034bc1041d9ba7d3c681be6dfc4e7dfacfcf625e057b99924c245de03c2888c.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
108 changes: 39 additions & 69 deletions
108
...03c0aad3ac30d85176e0a4e35f72bbb21b12.json → ...42a0eb9cad22a120a957a699c8752933b8a7.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...7ea81d8d10c76bbae540013667e13230e2ea.json → ...2803cd147dec7450d1f81a41aea8dcf3be93.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.