In bitcoin-cli getpeerinf call what does "-1" mean as a "synced_headers" or "synced_blocks" value?

Bitcoin Asked by Strob on December 17, 2021

Sometimes I see this in getpeerinfo:

"synced_headers": -1,
"synced_blocks": -1,

sometimes it’s only synced blocks at -1.

What does that mean?

One Answer

It means you either have no headers, no block, or both known to be (*) in common with this peer.

From the help:

$ bitcoin-cli help getpeerinfo
    "synced_headers" : n,          (numeric) The last header we have in common with this peer
    "synced_blocks" : n,           (numeric) The last block we have in common with this peer

(*) As Pieter cleared in the comment it doesn't mean you aren't on the same chain, just that the peer didn't announce any block to you yet.

Answered by darosior on December 17, 2021

Add your own answers!

Related Questions

Whatsminer event code E011

1  Asked on January 2, 2022


Bitcoincore wallet 0.20.0

1  Asked on December 31, 2021 by miner-br99


Wasabi CoinJoin Produces Non-Existent Coins/Transactions

1  Asked on December 19, 2021 by ramn-j-romero-y-vigil


Bitcoin core full node won’t start on mac reboot!

1  Asked on December 12, 2021 by philip-badboy


Importing paper wallet into Electrum

0  Asked on December 10, 2021 by thekevinscott


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir