Closed MuthuVega closed 2 years ago
I'm not sure this is a bug, but rather the nodes being removed - I've posted on slack asking for clarifiaction:
https://vegaprotocol.slack.com/archives/CD4AKTFQT/p1655998645192109
OK after some investigation I think this is NotABug(tm). When I ran a network with 5 nodes, but network.validators.tendermint.number
set to 3 - I initially could see the 3 validator nodes, 1 pending, 1 ersatz.
However on epoch 10 they are removed. After discussing with Zohar, and looking at the logs, I believe this is intended behaviour because they have 0 stake. The core logs say:
removing validator with 0 positive ranking for too long {"node-id": "bc2ce8bf7366b5326a46afad43f292c690d8ffc0c7aaff9e2993f3e7d56e3ed5"}
removing validator with 0 positive ranking for too long {"node-id": "d7ddcf5384f3006016d8faf058eefe4c0897812b73ae31a08bbe2c0467a8ef89"}
And I can see in the database that the Datanode is picking up this event and recording these nodes as not being active; thus excluding them from the results of the node query.
It's possible that what I described isn't exactly the scenario you had @MuthuVega, if you disagree feel free to re-open the ticket but I'm going to close it now as I'm fairly sure it's doing what it was supposed to do.
That said it took me a while to figure out and is perhaps a bit confusing - it might be nice to see all the nodes in the query but with a status of 'Removed' or something, which would have gotten us to this answer a lot quicker. That wouldn't be too tricky to do, if it would be useful feel very free to make a ticket and we'll put it on the list.
Happy with this explanation.
Started a network with 5 validators - 3 tendermint, 1 ersatz and 1 pending validator
However querying the nodes doesn't return all the nodes
Response
Querying one of the earliest epochs , all the nodes are returned
Response