Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: studiofaca on September 22, 2018, 11:41:09 AM



Title: Coinbase/Block without any transaction
Post by: studiofaca on September 22, 2018, 11:41:09 AM
Hello.

How is possible to create new coinbase (new block) without any transaction?

Example:
https://www.blockchain.com/btc/block/0000000000000000001eccb495a1e7f5c5f61403a16bd1e4fa34f2b84f636ae1
https://www.blockchain.com/btc/block/0000000000000000001dff4f97a36d184dcc64e238f304b9f92e485c49de199b
https://www.blockchain.com/btc/block/0000000000000000001e70f6e3ccdce60ec21c3a3a2243c7b2ed8b4a0b84adb1

Any idea?

Thank you.


Title: Re: Coinbase/Block without any transaction
Post by: BitcoinHodler on September 22, 2018, 11:46:47 AM
it is possible because it is how the protocol works. a block is valid as long as it has at least 1 transaction in it and that transaction is the coinbase tx producing the new coins in form of the block reward.

it usually happens when there is a short time (like a couple of seconds) between two blocks.


Title: Re: Coinbase/Block without any transaction
Post by: buwaytress on September 23, 2018, 09:26:34 AM
it usually happens when there is a short time (like a couple of seconds) between two blocks.

Miners can start work on block n+1, even before finishing downloading block n body and can sometimes solve that n+1 block in that time and submit it rightaway.

I suppose it could also happen when there aren't many txs in queue (as in the case these days) because most or all of the transactions picked up by the latter miner were already included in that previous block, so the miner goes ahead and submits the empty block... to save the time it takes to download and verify new txs (the time it could take for someone else to find and submit a block).

So it's generally deliberate, as everyone's competing to be the first to find the next block. It's definitely deliberate when network's heavy.