-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(sequencer)!: put blocks and deposits to non-verified storage (E…
…NG-812) (#1525) ## Summary This changes where sequencer blocks and the `TracePrefixed` native asset are stored, and also persists `Deposit`s to non-verifiable storage. ## Background Sequencer blocks are currently written to verified storage, which is unnecessary as all of their constituent data is already available there. We want to avoid the cost of storing full blocks in verified storage, but still have the ability to provide a third party with a full block if requested. To further assist with this, deposits will also be written to non-verified storage. It also seemed appropriate to store the `TracePrefixed` native asset in verified storage, since this is something which all validators should reach consensus over. ## Changes - `SequencerBlock`s are now stored in non-verifiable storage. - `Deposit`s are now stored in non-verifiable storage. - The native asset is now stored in verifiable storage. ## Testing Existing unit tests have been updated as required to assert these changes. ## Breaking Changelist - The set of data being written to verified storage has changed, which is a breaking change in terms of on-disk data and generation of state root hashes. Otherwise no APIs have changed. ## Related Issues Closes #1493.
- Loading branch information
Showing
12 changed files
with
256 additions
and
749 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
59 changes: 30 additions & 29 deletions
59
...cer__app__tests_breaking_changes__app_execute_transaction_with_every_action_snapshot.snap
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,38 +1,39 @@ | ||
--- | ||
source: crates/astria-sequencer/src/app/tests_breaking_changes.rs | ||
assertion_line: 308 | ||
expression: app.app_hash.as_bytes() | ||
--- | ||
[ | ||
237, | ||
67, | ||
124, | ||
63, | ||
240, | ||
228, | ||
62, | ||
229, | ||
45, | ||
207, | ||
78, | ||
64, | ||
191, | ||
89, | ||
84, | ||
121, | ||
150, | ||
21, | ||
207, | ||
248, | ||
173, | ||
132, | ||
77, | ||
247, | ||
126, | ||
148, | ||
252, | ||
239, | ||
251, | ||
224, | ||
244, | ||
97, | ||
68, | ||
46, | ||
184, | ||
181, | ||
205, | ||
86, | ||
212, | ||
153, | ||
66, | ||
146, | ||
179, | ||
120, | ||
206, | ||
95, | ||
76, | ||
11, | ||
0, | ||
184, | ||
137, | ||
173 | ||
104, | ||
130, | ||
55, | ||
201, | ||
32, | ||
57, | ||
167, | ||
215, | ||
228 | ||
] |
59 changes: 30 additions & 29 deletions
59
...snapshots/astria_sequencer__app__tests_breaking_changes__app_finalize_block_snapshot.snap
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,38 +1,39 @@ | ||
--- | ||
source: crates/astria-sequencer/src/app/tests_breaking_changes.rs | ||
assertion_line: 157 | ||
expression: app.app_hash.as_bytes() | ||
--- | ||
[ | ||
111, | ||
25, | ||
76, | ||
238, | ||
112, | ||
77, | ||
102, | ||
234, | ||
8, | ||
97, | ||
24, | ||
100, | ||
73, | ||
128, | ||
228, | ||
106, | ||
82, | ||
255, | ||
119, | ||
93, | ||
248, | ||
7, | ||
224, | ||
51, | ||
239, | ||
115, | ||
58, | ||
9, | ||
149, | ||
86, | ||
23, | ||
113, | ||
195, | ||
128, | ||
219, | ||
248, | ||
114 | ||
198, | ||
108, | ||
251, | ||
204, | ||
202, | ||
182, | ||
150, | ||
203, | ||
69, | ||
213, | ||
169, | ||
101, | ||
228, | ||
90, | ||
61, | ||
94, | ||
59, | ||
180, | ||
251, | ||
59, | ||
119, | ||
37, | ||
42, | ||
216 | ||
] |
Oops, something went wrong.