1

what I understood about mining a block is that, New/pending transactions are to be verified and placed into a block solving the proof of work. The miners are rewarded for this task.

In the very beginning.. when there were no transactions taking place.. what were they mining? what were in those blocks? how did bitcoin circulate all over the world?

  • See also https://bitcoin.stackexchange.com/questions/2021/what-happens-if-there-are-no-transactions-in-a-block?rq=1 https://bitcoin.stackexchange.com/questions/24098/why-there-are-blocks-with-single-transaction-in-blockchain?rq=1 https://bitcoin.stackexchange.com/questions/46053/why-was-block-289791-empty-of-any-transactions?rq=1 https://bitcoin.stackexchange.com/questions/34089/how-often-does-a-block-have-only-one-transaction https://bitcoin.stackexchange.com/questions/18260/does-mining-activity-only-exist-if-there-are-bitcoin-transactions?noredirect=1&lq=1 – Nate Eldredge Sep 10 '17 at 17:54
  • right.. but im trying to implement bitcoin protocol in python.. and i wanted an answer which takes into account the implementation part.. – Ankush Tripathi Sep 11 '17 at 10:14
  • Can you edit to state your question more specifically, then? You never said anything about implementation, and the answer you accepted contains exactly the same information as answers to the "duplicate" questions. – Nate Eldredge Sep 11 '17 at 13:44

1 Answers1

2

The first blocks were completely empty and didn't contain any transactions. The first transaction was in block 170 from Satoshi to Hal Finney, as seen here.

As newly generated coins from mined blocks are only spendable after 100 blocks, the earliest possible block to spend the first coins would have been at block 101.

It is completely legit to mine empty blocks (even if there are pending unconfirmed transactions). Here is an example of an empty block on April 2017.

Jack O'Neill
  • 266
  • 2
  • 12
  • so, they are just hashing the block headers? – Ankush Tripathi Sep 11 '17 at 10:19
  • yes. And with that they are helping securing the network and every transaction of the previous blocks because more work on top of block means the blocks are more secure because it gets more difficult to undo previous blocks. – Jack O'Neill Sep 11 '17 at 10:24