You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How it works for now: checks every N seconds if there's a diff from the last state, reporting the diff. If some validator is going to jail, it'll report a lot of messages.
How it may work:
store a state in a json file or so, reload it from disk on restart
have a struct for each valcons (ValidatorState) that has the following: valcons, valoper, moniker, missed blocks, jailed
have a set of groups (MissedBlocksGroup) in config, represented by a struct with the following fields: start value, end value, emoji when a validator's missed blocks counter enters/leaves this group, message for it
have a struct (ReportMessage) that has the following fields: emoji, valoper, moniker, missed blocks, message
have a function that maps previous and current ValidatorState using MissedBlocksGroup array and jailed param to an optional Message if a validator state was changed, either if validator is jailed/unjailed, or if a validator's missed blocks counter changes causing it to fall under a different MissedBlocksGroup (if validator either skips more blocks or signs and the window moves.
The text was updated successfully, but these errors were encountered:
How it works for now: checks every N seconds if there's a diff from the last state, reporting the diff. If some validator is going to jail, it'll report a lot of messages.
How it may work:
The text was updated successfully, but these errors were encountered: