You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -121,35 +118,28 @@ contract Zenith is Passage {
121
118
emitSequencerSet(sequencer, false);
122
119
}
123
120
124
-
/// @notice Submit a rollup block with block data submitted via calldata.
125
-
/// @dev Blocks are submitted by Builders, with an attestation to the block data signed by a Sequencer.
121
+
/// @notice Submit a rollup block.
122
+
/// @dev Blocks are submitted by Builders, with an attestation to the block signed by a Sequencer.
126
123
/// @param header - the header information for the rollup block.
127
-
/// @param blockDataHash - keccak256(blockData). the Node will discard the block if the hash doens't match.
124
+
/// @param blockDataHash - keccak256(rlp-encoded transactions). the Node will discard the block if the hash doens't match transactions provided.
128
125
/// @dev including blockDataHash allows the sequencer to sign over finalized block data, without needing to calldatacopy the `blockData` param.
129
126
/// @param v - the v component of the Sequencer's ECSDA signature over the block header.
130
127
/// @param r - the r component of the Sequencer's ECSDA signature over the block header.
131
128
/// @param s - the s component of the Sequencer's ECSDA signature over the block header.
132
-
/// @param blockData - block data information. could be packed blob hashes, or direct rlp-encoded transctions. blockData is ignored by the contract logic.
133
129
/// @custom:reverts BadSequence if the sequence number is not the next block for the given rollup chainId.
134
130
/// @custom:reverts BlockExpired if the confirmBy time has passed.
135
131
/// @custom:reverts BadSignature if the signer is not a permissioned sequencer,
136
132
/// OR if the signature provided commits to a different header.
137
133
/// @custom:reverts OneRollupBlockPerHostBlock if attempting to submit a second rollup block within one host block.
138
134
/// @custom:emits BlockSubmitted if the block is successfully submitted.
139
-
/// @custom:emits BlockData to expose the block calldata; as a convenience until calldata tracing is implemented in the Node.
140
135
function submitBlock(
141
136
BlockHeader memoryheader,
142
137
bytes32blockDataHash,
143
138
uint8v,
144
139
bytes32r,
145
140
bytes32s,
146
-
bytescalldatablockData
141
+
bytescalldata
147
142
) external {
148
-
_submitBlock(header, blockDataHash, v, r, s);
149
-
emitBlockData(blockData);
150
-
}
151
-
152
-
function _submitBlock(BlockHeader memoryheader, bytes32blockDataHash, uint8v, bytes32r, bytes32s) internal {
153
143
// assert that the sequence number is valid and increment it
0 commit comments