I just want to mine an empty block with a daemon I am running. Do I need to change the code significantly or is there a setting?
Also do I still get a reward?
Monero Stack Exchange is a question and answer site for developers and users of the secure, private and untraceable cryptocurrency Monero. It only takes a minute to sign up.
Sign up to join this communityDo I need to change the code significantly or is there a setting?
There is no "setting", so you either change the code (where the block template is filled with pending transactions) or fetch a block template straight after a block is mined (e.g. when the tx pool is empty), then find the solution before some other miner.
Also do I still get a reward?
Yes (assuming you mine the block before someone else of course).