From 8c94ec5647725f17edece7ecc75fea780780b071 Mon Sep 17 00:00:00 2001 From: ravidulashan Date: Fri, 13 Dec 2019 10:25:54 +0530 Subject: [PATCH] Updated consensus messages. --- src/cons/cons.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cons/cons.cpp b/src/cons/cons.cpp index a891d8f7..01ce0940 100644 --- a/src/cons/cons.cpp +++ b/src/cons/cons.cpp @@ -500,7 +500,7 @@ void check_lcl_votes(bool &is_desync, bool &should_request_history, uint64_t &ti if (total_lcl_votes < (MAJORITY_THRESHOLD * conf::cfg.unl.size())) { - LOG_DBG << "Not enough peers proposing to perform consensus" << std::to_string(total_lcl_votes) << " needed " << std::to_string(MAJORITY_THRESHOLD * conf::cfg.unl.size()); + LOG_DBG << "Not enough peers proposing to perform consensus votes:" << std::to_string(total_lcl_votes) << " needed:" << std::to_string(MAJORITY_THRESHOLD * conf::cfg.unl.size()); is_desync = true; //Not enough nodes are propsing. So Node is switching to Proposing if it's in observing mode. @@ -537,7 +537,7 @@ void check_lcl_votes(bool &is_desync, bool &should_request_history, uint64_t &ti if (winning_votes < MAJORITY_THRESHOLD * ctx.candidate_proposals.size()) { // potential fork condition. - LOG_WARN << "No consensus on lcl. Possible fork condition. " << std::to_string(winning_votes) << std::to_string(ctx.candidate_proposals.size()); + LOG_WARN << "No consensus on lcl. Possible fork condition. won:" << std::to_string(winning_votes) << " total:" << std::to_string(ctx.candidate_proposals.size()); is_desync = true; return; }