Does a bitcoin node broadcast that it is full synced?

3

1

When a bitcoin core node is fully synced, does it broadcast to the rest of the network that is has finished syncing? If yes, where in the bitcoin-core source code is this implemented?

Barney Chambers

Posted 2019-01-15T00:12:49.227

Reputation: 291

Answers

2

No. The nodes notify only about block height in the beginning of connection in version message. When node wants to notify about new block/tx it received/created, it uses inv message.

There is no point to notify other peers about downloading full blockchain. Other nodes have nothing to do with such information.

Zergatul

Posted 2019-01-15T00:12:49.227

Reputation: 948

It would be useful for blockchains that have very slow blocks, ie >24 hours as -maxtipage of bitcoin 24 hours causes a bug in the blockchain where users cannot use rpc mining commands, since the code thinks it is still downloading the initial blockchain. Thanks for your answer btwBarney Chambers 2019-01-15T00:42:45.187

@BarneyChambers that's interesting, but no one will use such slow blockchainZergatul 2019-01-15T00:44:35.017

this has happened to a few blockchains ;) Brazio, Octocoin to name just 2Barney Chambers 2019-01-15T08:00:10.297

0

No, for the simple reason that the network do not need to know when and if a node finish syncing to latest block height.

That's irrelevant to the blockchain network so there isn't any sort of syncing complete message broadcasting.

AG23

Posted 2019-01-15T00:12:49.227

Reputation: 29

0

No it doesn't broadcast a message like that.

Your bitcoin node doesn't know when it's fully synced. All it knows for sure is that it's up to par with all the nodes its currently connected to.

At any given moment, your node is working to be as synced as possible, listening to its peers. But that means you have to trust what they tell you, and trust that they are also up to date. Certainty is impossible, but the probability is pretty high (>99%) that you're up to sync when connected to several peers. The general rule is that if you connect to 8 peers, you can reach everyone. Even if a few are dishonest, the rest aren't, and all you need is one telling the truth.

What your node does broadcast is what services it offers, its version number, the time, and its current blockheight.

BluJay

Posted 2019-01-15T00:12:49.227

Reputation: 1