-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
feat(protocol): support delayed forced inclusion of txs #18826
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: xiaodino <[email protected]>
Co-authored-by: xiaodino <[email protected]> Co-authored-by: Daniel Wang <[email protected]> Co-authored-by: dantaik <[email protected]>
Co-authored-by: xiaodino <[email protected]>
This PR is ready for another round of review. |
params.blocks[0].numTransactions = MAX_FORCED_TXS_PER_FORCED_INCLUSION; | ||
} | ||
|
||
params.blobParams.blobHashes = new bytes32[](1); |
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.
If we set blobHashes
here, then the _blobParams.firstBlobIndex
will be ignored? https://github.com/taikoxyz/taiko-mono/blob/main/packages/protocol/contracts/layer1/based/TaikoInbox.sol#L568
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.
See line 94
if (!calldataUsed) {
if (params.blobParams.blobHashes.length == 0) {
require(params.blobParams.numBlobs != 0, BlobNotSpecified());
} else {
require(
params.blobParams.numBlobs == 0 && params.blobParams.firstBlobIndex == 0,
InvalidBlobParams()
);
}
}
```
This reverts commit 40efbb7.
Initial implementation of delayed inbox (forced inclusion of transactions)
The original idea is from @cyberhorsey's PR: https://github.com/taikoxyz/taiko-mono/pull/18824/files#diff-bea5dd46ba3d231a238b7c76adc7d09dfa3f8ebd3bf552407f9098492f3ff8f5