Skip to content

Commit

Permalink
Merge pull request #562 from evoskuil/master
Browse files Browse the repository at this point in the history
Move get_spend_sets into confirmable_block, style, orgnanization.
  • Loading branch information
evoskuil authored Feb 9, 2025
2 parents 513537a + 3e79202 commit 01b2b4a
Show file tree
Hide file tree
Showing 9 changed files with 312 additions and 304 deletions.
1 change: 1 addition & 0 deletions include/bitcoin/database/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ enum error_t : uint8_t
integrity6,
integrity7,
integrity8,
integrity9,

/// memory map
open_open,
Expand Down
12 changes: 0 additions & 12 deletions include/bitcoin/database/impl/query/archive_read.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,6 @@
namespace libbitcoin {
namespace database {

// local
template <typename Bool>
inline bool push_bool(std_vector<Bool>& stack, const Bool& element) NOEXCEPT
{
if (!element)
return false;

stack.push_back(element);
return true;
}


// Bools.
// ----------------------------------------------------------------------------

Expand Down
8 changes: 7 additions & 1 deletion include/bitcoin/database/impl/query/confirm.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#define LIBBITCOIN_DATABASE_QUERY_CONFIRM_IPP

#include <algorithm>
#include <atomic>
#include <bitcoin/system.hpp>
#include <bitcoin/database/define.hpp>
#include <bitcoin/database/error.hpp>
Expand Down Expand Up @@ -118,6 +117,13 @@ bool CLASS::is_spent(const spend_link& link) const NOEXCEPT
return is_spent_prevout(spend.point_fk, spend.point_index);
}

TEMPLATE
bool CLASS::is_strong_tx(const tx_link& link) const NOEXCEPT
{
table::strong_tx::record strong{};
return store_.strong_tx.find(link, strong) && strong.positive;
}

TEMPLATE
bool CLASS::is_strong_block(const header_link& link) const NOEXCEPT
{
Expand Down
Loading

0 comments on commit 01b2b4a

Please sign in to comment.