The protocol leaves it up to the miner to decide which transactions to include in a block. There is no requirement for them to include any transactions at all, other than the "coinbase" transaction which specifies where to send the block reward.
However, most transactions have fees attached, which the miner can collect only by including those transactions in the block. So this gives the miner an incentive to include transactions if there are any outstanding.
Note that a block with no transactions does still contribute to the security of the currency: it increases the amount of hashing that an attacker would need to do to reverse a transaction recorded in a previous block.
(They would have to produce a chain showing more work than the current one, including the work proved by the zero-transaction block.)
whats the use of such block ? if they are not helping network to reduce the unconfirmed tx ? they are only making it hard to reverse the tx or providing their hashpower.
so what needs to be done to mine such block ? what do you tell your miner ? not to include any tx .
what happens when more people start to do same thing ., and not include transactions in block ?
i gotta read more stuff now, all this time i missed it, block can be empty too, then what is block made of ? how is the coinbase tx gets created/generated.
dang.
edit:
looks likr consensus is what i need to look into.
block = coinbase tx + regular tx (optional)
coinbase tx gives block reward
regular tx gives tx fees.
thanks .