-
Notifications
You must be signed in to change notification settings - Fork 308
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: nuking l1 to l2 messages from block body #5272
Merged
benesjan
merged 18 commits into
master
from
03-17-refactor_nuking_l1_to_l2_messages_from_block_body
Mar 21, 2024
+339
−518
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
ccb4b55
WIP
benesjan 722c7a0
slither
benesjan fc80953
WIP
benesjan 7285af8
WIP
benesjan f6d98e5
updated data
benesjan 1f9e099
linking issue
benesjan 60cea24
deleted old comment
benesjan 5128ffd
adding comment
benesjan 18b2055
fixed naming
benesjan f2382ea
forgotten receipts check
benesjan 899027f
fix
benesjan de1f112
e2e_persistence test cleanup
benesjan e1730e9
slither
benesjan f9c180d
nuked messages decoder
benesjan 4702e2d
WIP
benesjan 7c34501
fix
benesjan 62589ad
fix
benesjan b94bce1
non zero messages
benesjan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ import {IRegistry} from "./interfaces/messagebridge/IRegistry.sol"; | |
|
||
// Libraries | ||
import {HeaderLib} from "./libraries/HeaderLib.sol"; | ||
import {MessagesDecoder} from "./libraries/decoders/MessagesDecoder.sol"; | ||
import {Hash} from "./libraries/Hash.sol"; | ||
import {Errors} from "./libraries/Errors.sol"; | ||
import {Constants} from "./libraries/ConstantsGen.sol"; | ||
|
@@ -54,15 +53,12 @@ contract Rollup is IRollup { | |
* @notice Process an incoming L2 block and progress the state | ||
* @param _header - The L2 block header | ||
* @param _archive - A root of the archive tree after the L2 block is applied | ||
* @param _body - The L2 block body | ||
* @param _proof - The proof of correct execution | ||
*/ | ||
function process( | ||
bytes calldata _header, | ||
bytes32 _archive, | ||
bytes calldata _body, // TODO(#5073) Nuke this when updating to the new message model | ||
bytes memory _proof | ||
) external override(IRollup) { | ||
function process(bytes calldata _header, bytes32 _archive, bytes memory _proof) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤩 |
||
external | ||
override(IRollup) | ||
{ | ||
// Decode and validate header | ||
HeaderLib.Header memory header = HeaderLib.decode(_header); | ||
HeaderLib.validate(header, VERSION, lastBlockTs, archive); | ||
|
@@ -72,10 +68,6 @@ contract Rollup is IRollup { | |
revert Errors.Rollup__UnavailableTxs(header.contentCommitment.txsEffectsHash); | ||
} | ||
|
||
// Decode the cross-chain messages (Will be removed as part of message model change) | ||
// TODO(#5339) | ||
(,,, bytes32[] memory l2ToL1Msgs) = MessagesDecoder.decode(_body); | ||
|
||
bytes32[] memory publicInputs = new bytes32[](1); | ||
publicInputs[0] = _computePublicInputHash(_header, _archive); | ||
|
||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to nuke this one in this PR so I sneaked that in here.