From 82ea7d33cd2577a098f1132574668257a0917857 Mon Sep 17 00:00:00 2001 From: mfrankovi Date: Mon, 24 Apr 2023 16:42:27 +0200 Subject: [PATCH] fix: setting reward votes period --- .../core_libs/consensus/src/vote_manager/vote_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/core_libs/consensus/src/vote_manager/vote_manager.cpp b/libraries/core_libs/consensus/src/vote_manager/vote_manager.cpp index 9b791c4ba7..1acbb6e960 100644 --- a/libraries/core_libs/consensus/src/vote_manager/vote_manager.cpp +++ b/libraries/core_libs/consensus/src/vote_manager/vote_manager.cpp @@ -31,8 +31,8 @@ VoteManager::VoteManager(const addr_t& node_addr, const PbftConfig& pbft_config, auto db_votes = db_->getAllTwoTPlusOneVotes(); - auto addVerifiedVotes = [this](const std::vector>& votes) { - bool reward_votes_info_set = false; + bool reward_votes_info_set = false; + auto addVerifiedVotes = [this, &reward_votes_info_set](const std::vector>& votes) { for (const auto& vote : votes) { // Check if votes are unique per round, step & voter if (!isUniqueVote(vote).first) {