mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-04-23 03:00:50 -04:00
add queueTransaction to import message hashes directly
This commit is contained in:
@@ -402,6 +402,13 @@ contract L1MessageQueue is OwnableUpgradeable, IL1MessageQueue {
|
||||
emit UpdateMaxGasLimit(_oldMaxGasLimit, _newMaxGasLimit);
|
||||
}
|
||||
|
||||
function appendHashes(bytes32[] _hashes, uint256 _fromQueueIndex) external {
|
||||
require(_fromQueueIndex == messageQueue.length, "messageQueue index mismatch");
|
||||
for (uint256 i = 0; i < _hashes.length; i++) {
|
||||
messageQueue.push(_hashes[i]);
|
||||
}
|
||||
}
|
||||
|
||||
/**********************
|
||||
* Internal Functions *
|
||||
**********************/
|
||||
|
||||
Reference in New Issue
Block a user