3

Bitcoin 0.10 uses getheaders to synchronize. How long has this message been supported by other clients? How many existing nodes support it?

4

How long has this message been supported by other clients?

It was added by Satoshi in Bitcoin v0.3.18 (released on december 8th, 2010)

How many existing nodes support it?

All of them. It has been used by SPV clients for a long time to do fast synchronization without downloading all historical blocks.

  • Was the headers message also there along with the getheaders, or did the getheaders use to respond with blocks? – scravy Sep 24 '18 at 15:57
  • The headers message was also there. – Pieter Wuille Sep 24 '18 at 17:53
  • The headers message includes a transaction count which is always zero, bitcoin-core even skips it with a comment "assume it is 0". It looks like this was supposed to ease writing software that could just apply its block parsing logic on that message. But technically that number of transactions is superfluous, right? So I believe it is just a historical artefact that does not serve any future purpose? – scravy Sep 25 '18 at 9:25
  • 1
    That's right. At the time, there was no separate CBlockHeader and CBlock; a header was just a CBlock with no transactions. – Pieter Wuille Sep 25 '18 at 11:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.