-
Notifications
You must be signed in to change notification settings - Fork 713
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Elderberry blockhash adjustments (#3424)
* remove intermediate state root from receipts after Etrog * use receipt state returned by executor instead of checking the RomError * use receipt status from executor only after Etrog * fix gasLimit and cumulativeGasUsed for Elderberry txs (#3428) * keep im state root in db (#3427) * generate receipt refactor (#3436) * generate receipt refactor * update prover image * downgrade prover image --------- Co-authored-by: agnusmor <100322135+agnusmor@users.noreply.github.com> Co-authored-by: Toni Ramírez <58293609+ToniRamirezM@users.noreply.github.com>
- Loading branch information
1 parent
567d1df
commit 192d020
Showing
24 changed files
with
172 additions
and
105 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
-- +migrate Up | ||
CREATE TABLE state.blob_inner | ||
( | ||
blob_inner_num BIGINT PRIMARY KEY, | ||
data BYTEA, | ||
block_num BIGINT NOT NULL REFERENCES state.block (block_num) ON DELETE CASCADE | ||
); | ||
ALTER TABLE state.virtual_batch | ||
ADD COLUMN IF NOT EXISTS blob_inner_num BIGINT REFERENCES state.blob_inner(blob_inner_num), | ||
ADD COLUMN IF NOT EXISTS prev_l1_it_root VARCHAR, | ||
ADD COLUMN IF NOT EXISTS prev_l1_it_index BIGINT; | ||
ALTER TABLE state.receipt | ||
ADD COLUMN IF NOT EXISTS im_state_root BYTEA; | ||
|
||
-- +migrate Down | ||
ALTER TABLE state.virtual_batch | ||
DROP COLUMN IF EXISTS blob_inner_num, | ||
DROP COLUMN IF EXISTS prev_l1_it_root, | ||
DROP COLUMN IF EXISTS prev_l1_it_index; | ||
UPDATE state.receipt SET im_state_root = post_state WHERE block_num >= (SELECT MIN(block_num) FROM state.l2block WHERE batch_num >= (SELECT from_batch_num FROM state.fork_id WHERE fork_id = 7)); | ||
|
||
DROP TABLE state.blob_inner; | ||
-- +migrate Down | ||
ALTER TABLE state.receipt | ||
DROP COLUMN IF EXISTS im_state_root; |
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,19 @@ | ||
-- +migrate Up | ||
CREATE TABLE state.blob_inner | ||
( | ||
blob_inner_num BIGINT PRIMARY KEY, | ||
data BYTEA, | ||
block_num BIGINT NOT NULL REFERENCES state.block (block_num) ON DELETE CASCADE | ||
); | ||
ALTER TABLE state.virtual_batch | ||
ADD COLUMN IF NOT EXISTS blob_inner_num BIGINT REFERENCES state.blob_inner(blob_inner_num), | ||
ADD COLUMN IF NOT EXISTS prev_l1_it_root VARCHAR, | ||
ADD COLUMN IF NOT EXISTS prev_l1_it_index BIGINT; | ||
|
||
-- +migrate Down | ||
ALTER TABLE state.virtual_batch | ||
DROP COLUMN IF EXISTS blob_inner_num, | ||
DROP COLUMN IF EXISTS prev_l1_it_root, | ||
DROP COLUMN IF EXISTS prev_l1_it_index; | ||
|
||
DROP TABLE state.blob_inner; |
File renamed without changes.
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.