user107289: Sometimes I see this in getpeerinfo:
"synced_headers": -1,
"synced_blocks": -1,
sometimes it's only synced blocks at -1.
What does that mean?

user101498: 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.

107289: <p>Sometimes I see this in getpeerinfo:</p>
<p>&quot;synced_headers&quot;: -1,
&quot;synced_blocks&quot;: -1,</p>
<p>sometimes it's only synced blocks at -1.</p>
<p>What does that mean?</p>
 101498: <p>It means you either have no headers, no block, or both <em>known to be</em> (*) in common with this peer.</p>
<p>From the <code>help</code>:</p>
<pre><code>$ 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
</code></pre>
<p>(*) 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.</p>
