adshares / ads

ADS Blockchain
Other
21 stars 4 forks source link

Inform about readonly state #149

Open PawelPodkalicki opened 6 years ago

PawelPodkalicki commented 6 years ago

During tests some nodes entered readonly state. Currently there is no way to recognize this in any other way than executing a command (auth data is needed) or by analyze whole node's log.

Is it possbile to make this status accesible to monitoring scripts by adding to "CLOCK" log entries or add function to ads?


By the way, function ofip_readonly() sets readonly status. This function appears with assigment

panic=false;

or

panic=true;

Is variable panic used?