Bitcoin Forum
October 17, 2018, 06:47:42 AM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Blockcypher and genesis block - something wrong?  (Read 36 times)
pseudo_geek
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
February 22, 2018, 01:42:38 PM
 #1

Shouldn't the height of genesis block be zero?
If I type 0 on Blockcypher, it will return a error:
Code:
Server Error (500)
It seems that Blockcypher put the genesis block on height 1, thus makes the true block#1 inaccesible (unless specify sha256 directly: 00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048).
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
AdolfinWolf
Hero Member
*****
Offline Offline

Activity: 826
Merit: 627



View Profile
February 22, 2018, 02:07:23 PM
 #2

Shouldn't the height of genesis block be zero?
If I type 0 on Blockcypher, it will return a error:
Code:
Server Error (500)
It seems that Blockcypher put the genesis block on height 1, thus makes the true block#1 inaccesible (unless specify sha256 directly: 00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048).

It is usually interpreted as block zero yes. It's just a matter of how these sites index/display it. It looks like Blockcypher is indeed reffering to both the Genesis and the normal first block as Block #1, which indeed looks a bit weird. ( And i doubt that it is done intentionally...)

A better way would indeed be to display it like this,

Block #0 https://blockchain.info/block-index/14849/000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f

vs

Block #1 https://blockchain.info/block-index/14850/00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048


Also,


Quote
Modern versions of Bitcoin number it as block 0, though very early versions counted it as block 1
https://en.bitcoin.it/wiki/Genesis_block

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!