mochimodev/mochimo

Exit program if eon cannot be performed N times

Closed this issue · 5 comments

0rtis commented

Miner should exit if the eon quorum cannot be reached N times. The gomochi script must be modified so the startnodes.lst is inside the while loop.

These modifications should prevent the nodes to get stuck after a contention

Not sure what you mean by the first part, but I've had the second part included in my dev_branch for some time now.
Testing has been good, should be just about ready for a pull request...

0rtis commented

Currently, get_eon function is an infinite loop if the start nodes are stuck at 0x0. We need to update this function so the program exit if a quorum cannot be reached N time.
This gives a chance to update the start nodes before restarting and trying to reach a quorum again.

I don't quite understand where get_eon() is an infinite function.
My understanding was that if all the nodes selected by get_eon() are sitting on block 0x0, then the node will assume that it is on the highest block and proceed as if everything is ok, and wait to receive updates from the network.

Elevating this issue for inclusion in the upcoming v2.3 release. Thank you 0rtis.

Watchdog functionality has been included for the upcoming v2.3 release. Closing this issue.