You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
I would expect that this call returns all connected peers, beginning with "good" peers and the highest available height at the top. But the few peers at the beginning of this list look like this:
{"ip":"xx.xx.xx.xx","port":7000,"state":2,"os":"linux3.4.39","version":"0.5.0d","broadhash":null,"height":null}
meaning, height: null is rated higher than the real block height, which is wrong IMHO.
The text was updated successfully, but these errors were encountered:
I think part of this is that null is considered below 0 or NaN, so it comes up at the very top of the list when sorting by descending. The real issue at hand is why some nodes are coming up with blank broadhash and height. Some evidence points to this being a symptom of verifying the blockchain from 0 using current tables.
Syncing from 0 without blocks in the database will also do this. However in that case the broadhash will be the genesis block broadhash until the node is reloaded or finishes the sync.
We probably need to simulate some of these scenarios to get a better understanding of why it happens. As a stop gap I propose we remove peers who have a broadhash or height of null, since we have no idea if they are on a fork or at current height. The safest bet is to not communicate with them at all until their system is generating proper system headers.
I would expect that this call returns all connected peers, beginning with "good" peers and the highest available height at the top. But the few peers at the beginning of this list look like this:
{"ip":"xx.xx.xx.xx","port":7000,"state":2,"os":"linux3.4.39","version":"0.5.0d","broadhash":null,"height":null}
meaning, height: null is rated higher than the real block height, which is wrong IMHO.
The text was updated successfully, but these errors were encountered: