Skip to content

Commit

Permalink
GH-2125 Fix compile error and some more type name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Mar 1, 2024
1 parent ee5291f commit e3059bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libraries/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2808,7 +2808,7 @@ struct controller_impl {
const auto& if_ext = std::get<instant_finality_extension>(bsp->header_exts.lower_bound(if_ext_id)->second);
if (if_ext.qc_claim.is_strong_qc) {
// claim has already been verified
auto claimed = forkdb.search_branch(bsp->id(), if_ext.qc_claim.block_num);
auto claimed = forkdb.search_on_branch(bsp->id(), if_ext.qc_claim.block_num);
if (claimed) {
set_if_irreversible_block_num(claimed->core.final_on_strong_qc_block_num);
}
Expand Down
4 changes: 2 additions & 2 deletions libraries/chain/fork_database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,13 +657,13 @@ namespace eosio::chain {
}

template<class BSP>
void fork_database_t<BSP>::mark_valid( const BSP& h ) {
void fork_database_t<BSP>::mark_valid( const bsp_t& h ) {
std::lock_guard g( my->mtx );
my->mark_valid_impl( h );
}

template<class BSP>
void fork_database_impl<BSP>::mark_valid_impl( const BSP& h ) {
void fork_database_impl<BSP>::mark_valid_impl( const bsp_t& h ) {
if( bs_accessor_t::is_valid(*h) ) return;

auto& by_id_idx = index.template get<by_block_id>();
Expand Down
2 changes: 1 addition & 1 deletion libraries/chain/include/eosio/chain/fork_database.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace eosio::chain {

template<class bsp>
template<class BSP>
struct fork_database_impl;

using block_branch_t = std::vector<signed_block_ptr>;
Expand Down

0 comments on commit e3059bf

Please sign in to comment.