Skip to content

Commit

Permalink
fix a merging error
Browse files Browse the repository at this point in the history
  • Loading branch information
linh2931 committed Feb 2, 2024
1 parent 248ab4d commit 4065984
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libraries/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2999,18 +2999,18 @@ struct controller_impl {
} /// apply_block

// called from net threads and controller's thread pool
bool process_vote_message( const vote_message& vote ) {
auto do_vote = [&vote](auto& forkdb) -> std::pair<bool, std::optional<uint32_t>> {
vote_status process_vote_message( const vote_message& vote ) {
auto do_vote = [&vote](auto& forkdb) -> std::pair<vote_status, std::optional<uint32_t>> {
auto bsp = forkdb.get_block(vote.proposal_id);
if (bsp)
return bsp->aggregate_vote(vote);
return {false, {}};
return {vote_status::unknown_block, {}};
};
auto [valid, new_lib] = fork_db.apply_if<std::pair<bool, std::optional<uint32_t>>>(do_vote);
auto [status, new_lib] = fork_db.apply_if<std::pair<vote_status, std::optional<uint32_t>>>(do_vote);
if (new_lib) {
set_if_irreversible_block_num(*new_lib);
}
return valid;
return status;
};

void create_and_send_vote_msg(const block_state_ptr& bsp) {
Expand Down Expand Up @@ -4402,7 +4402,7 @@ void controller::set_proposed_finalizers( const finalizer_policy& fin_pol ) {
}

// called from net threads
bool controller::process_vote_message( const vote_message& vote ) {
vote_status controller::process_vote_message( const vote_message& vote ) {
return my->process_vote_message( vote );
};

Expand Down

0 comments on commit 4065984

Please sign in to comment.