diff --git a/miner/worker.go b/miner/worker.go index 11ce984e38..58db05a35b 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -526,6 +526,49 @@ func (miner *Miner) fillTransactions(interrupt *atomic.Int32, env *environment) return err } } + + // Filter out inclusion list transactions that are not included in the block. + isIncludedTx := make(map[common.Hash]bool) + for _, tx := range env.txs { + isIncludedTx[tx.Hash()] = true + } + + opts := &txpool.ValidationOptions{ + Config: miner.chainConfig, + Accept: 0 | + 1<