adshares/ads

Inform about readonly state

Opened this issue · 0 comments

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?