B3-Coin / B3-CoinV2

B3-CoinV2
MIT License
46 stars 64 forks source link

FN stuck in POS_Error #55

Closed AltFreq closed 6 years ago

AltFreq commented 6 years ago

Hey guys having issues with a few of my nodes being stuck in POS_ERROR state even when the node is left offline for over 24 hours.

When a node with a pose score of less than 6 is shut down, after an hour or so it will go into the EXPIRE state and be removed from the node list (fundamentalnodelist pose & fundamentalnodelist full). After a full resync and starting the node the new score is now 0 and it's in the ENABLED state.

When a node with a pose score of greater than 6 or in POS_ERROR state shutting down the node does not put it into the EXPIRED or REMOVED states.

I'm not very good at reading c++ but from what I can see there may be an error in fundamentalnode.cpp in void CFundamentalnode::Check() it first checks to see if its in the POS_ERROR state and then returns if it is before checking if its actually online.