Skip to content

Commit

Permalink
feat: set noTxPool in MPT parent block
Browse files Browse the repository at this point in the history
  • Loading branch information
kangsorang committed Dec 11, 2024
1 parent 21c1d19 commit 32e0a05
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions op-node/rollup/driver/sequencer.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ func (d *Sequencer) StartBuildingBlock(ctx context.Context) error {
d.log.Info("Sequencing Ecotone upgrade block")
}

// For the KromaMPT parent block we shouldn't include any sequencer transactions.
if d.rollupCfg.IsKromaMPTParentBlock(uint64(attrs.Timestamp)) {
attrs.NoTxPool = true
d.log.Info("Sequencing MPT upgrade parent block")
}

d.log.Debug("prepared attributes for new block",
"num", l2Head.Number+1, "time", uint64(attrs.Timestamp),
"origin", l1Origin, "origin_time", l1Origin.Time, "noTxPool", attrs.NoTxPool)
Expand Down

0 comments on commit 32e0a05

Please sign in to comment.