Skip to content

Commit

Permalink
fix(protocol): 1 block per forced transaction (#19001)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik authored Feb 27, 2025
1 parent 93285f8 commit fa63bb3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ contract TaikoWrapper is EssentialContract, IProposeBatch {
error InvalidBlobByteOffset();
error InvalidBlobByteSize();
error InvalidBlobCreatedIn();
error InvalidBlocksSize();
error OldestForcedInclusionDue();

uint16 public constant MIN_TXS_PER_FORCED_INCLUSION = 512;
Expand Down Expand Up @@ -101,6 +102,7 @@ contract TaikoWrapper is EssentialContract, IProposeBatch {
internal
{
ITaikoInbox.BatchParams memory p = abi.decode(_bytesX, (ITaikoInbox.BatchParams));
require(p.blocks.length == 1, InvalidBlocksSize());

IForcedInclusionStore.ForcedInclusion memory inclusion =
_forcedInclusionStore.consumeOldestForcedInclusion(p.proposer);
Expand Down

0 comments on commit fa63bb3

Please sign in to comment.