3

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

1 Answer 1

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.

6
  • Was the headers message also there along with the getheaders, or did the getheaders use to respond with blocks?
    – scravy
    Commented Sep 24, 2018 at 15:57
  • The headers message was also there. Commented Sep 24, 2018 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
    Commented Sep 25, 2018 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. Commented Sep 25, 2018 at 11:01
  • @PieterWuille could you please answer my question: bitcoin.stackexchange.com/questions/95676/… Commented May 3, 2020 at 9:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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