Who chose transactions which will be included in a next block

Hello.
I have a question.
In NEM, who decide transactions which will be included in a next block.
In tech reference, harvesters are defined as block creator. So I think harvesters can chose transactions included to next block. Is this correct?

In the case harvesters can chose transactions, how it works?
Is there any codes I can read?

Thank you!

Yes, harvesters can choose transactions to include.
Choosing harvester is uncertain to avoid harvest monopolized by consensus Algo PoI.
It’s important.

1 Like

Thank you!

Another Question…
Is it possible in the case of delegated harvesting?
Is there codes which I can read related this function?

I’m trying to figure it out myself.