mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-30 03:35:34 +00:00
@@ -163,11 +163,12 @@ func (n *Network) updateHealth() {
|
||||
// TODO: make sure they're all at the same height (within a block)
|
||||
// and all proposing (and possibly validating ) Alternatively, just
|
||||
// check there hasn't been a new round in numValidators rounds
|
||||
if n.NumValidators != 0 && n.NumNodesMonitoredOnline == n.NumValidators {
|
||||
switch {
|
||||
case n.NumValidators != 0 && n.NumNodesMonitoredOnline == n.NumValidators:
|
||||
n.Health = FullHealth
|
||||
} else if n.NumNodesMonitoredOnline > 0 && n.NumNodesMonitoredOnline <= n.NumNodesMonitored {
|
||||
case n.NumNodesMonitoredOnline > 0 && n.NumNodesMonitoredOnline <= n.NumNodesMonitored:
|
||||
n.Health = ModerateHealth
|
||||
} else {
|
||||
default:
|
||||
n.Health = Dead
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user