From cedcc30911cbcfa69b9ef0301c87286bfe3e6fa3 Mon Sep 17 00:00:00 2001 From: Doyle Date: Mon, 3 Feb 2020 09:36:13 +1100 Subject: [PATCH] Fix testing in quorum check, find_index_in_quorum_group(..) >= 0 (#1029) --- src/cryptonote_core/service_node_quorum_cop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptonote_core/service_node_quorum_cop.cpp b/src/cryptonote_core/service_node_quorum_cop.cpp index 8d21112e2..276e86b2f 100644 --- a/src/cryptonote_core/service_node_quorum_cop.cpp +++ b/src/cryptonote_core/service_node_quorum_cop.cpp @@ -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