Skip to content

Commit

Permalink
fix: setting reward votes period
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrankovi committed Apr 24, 2023
1 parent f08494b commit 82ea7d3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::shared_ptr<Vote>>& votes) {
bool reward_votes_info_set = false;
bool reward_votes_info_set = false;
auto addVerifiedVotes = [this, &reward_votes_info_set](const std::vector<std::shared_ptr<Vote>>& votes) {
for (const auto& vote : votes) {
// Check if votes are unique per round, step & voter
if (!isUniqueVote(vote).first) {
Expand Down

0 comments on commit 82ea7d3

Please sign in to comment.