Skip to content

Commit

Permalink
build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fpelliccioni committed Nov 3, 2023
1 parent 171294f commit 7dccff0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/full_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ bool full_node::handle_reorganized(code ec, size_t fork_height, block_const_ptr_
, encode_hash(block->header().hash()), "]");
}

auto const height = safe_add(fork_height, incoming->size());
auto const height = *safe_add(fork_height, incoming->size());

set_top_block({ incoming->back()->hash(), height });
return true;
Expand Down
2 changes: 1 addition & 1 deletion src/protocols/protocol_block_out.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ void protocol_block_out::handle_stop(code const&) {
// generating fork-relative locators.
size_t protocol_block_out::locator_limit() {
auto const height = node_.top_block().height();
return safe_add(domain::chain::block::locator_size(height), size_t(1));
return *safe_add(domain::chain::block::locator_size(height), size_t(1));
}

// Threshold:
Expand Down
1 change: 1 addition & 0 deletions src/utility/reservation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <kth/node/define.hpp>
#include <kth/node/utility/performance.hpp>
#include <kth/node/utility/reservations.hpp>
#include <kth/infrastructure/utility/timer.hpp>

namespace kth::node {

Expand Down

0 comments on commit 7dccff0

Please sign in to comment.