The payout tackle that subsidy/charges are despatched to is a part of the block itself. The very first transaction in each block is named the coinbase transaction. This coinbase transaction has no inputs (it implicitly receives the subsidy and costs of the block) and its outputs outline the place these new cash are despatched to.
So the reply is just: the rewards are despatched wherever the block says they go. This must be determined earlier than
submitblock is invoked. The truth is, it must be determined earlier than mining may even begin: because the coinbase is a part of the block, modifying it will invalidate the block’s proof of labor. This additionally prevents different events on the community from altering the block to pay them as a substitute.