2
1
Why block index or block height is not included in the block header?
Do we have to go through the whole chain if we want to know how many blocks are there in a chain?
On the other hand, if some blocks have the same hash, how to find them and get their content individually?
1
All blocks after 2012 contain the height in the block's coinbase transaction, see https://github.com/bitcoin/bips/blob/master/bip-0030.mediawiki
– Anonymous – 2018-04-30T13:43:49.530