Fix testing in quorum check, find_index_in_quorum_group(..) >= 0 (#1029)

This commit is contained in:
Doyle 2020-02-03 09:36:13 +11:00 committed by GitHub
parent 243a73c47a
commit cedcc30911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -381,7 +381,7 @@ namespace service_nodes
if (good > 0)
LOG_PRINT_L2(good << " of " << total << " service nodes are active and passing checks; no state change votes required");
}
else if (!tested_myself_once_per_block && find_index_in_quorum_group(quorum->workers, my_keys->pub))
else if (!tested_myself_once_per_block && (find_index_in_quorum_group(quorum->workers, my_keys->pub) >= 0))
{
// NOTE: Not in validating quorum , check if we're the ones
// being tested. If so, check if we would be decommissioned