In bitcoin-cli getpeerinf call what does "-1" mean as a "synced_headers" or "synced_blocks" value? Sometimes I see this in getpeerinfo:
&quot;synced_headers&quot;: -1,
&quot;synced_blocks&quot;: -1,
sometimes it's only synced blocks at -1.
What does that mean?
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
....
    &quot;synced_headers&quot; : n,          (numeric) The last header we have in common with this peer
    &quot;synced_blocks&quot; : 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.