This require to only include the transactions that are still in the mempool.
Because the node keeps the radix tree untouched until the block is finalized, it would be possible for the node to generate a block template with confirmed transactions otherwise.
The feature is gated behind a dedicated flag for now. In the end this will be tied to preconsensus but this requires some tests to be updated first.