Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions include/bitcoin/database/impl/query/archive_read.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@ inline bool CLASS::is_valid(const header_link& link) const NOEXCEPT
// Empty/null_hash implies fault, zero count implies unassociated.
// ----------------------------------------------------------------------------

TEMPLATE
hash_digest CLASS::get_top_confirmed_hash() const NOEXCEPT
{
return get_header_key(to_confirmed(get_top_confirmed()));
}

TEMPLATE
hash_digest CLASS::get_top_candidate_hash() const NOEXCEPT
{
return get_header_key(to_candidate(get_top_candidate()));
}

TEMPLATE
hashes CLASS::get_tx_keys(const header_link& link) const NOEXCEPT
{
Expand Down
2 changes: 2 additions & 0 deletions include/bitcoin/database/query.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ class query
inline bool is_valid(const header_link& link) const NOEXCEPT;

/// Empty/null_hash implies fault, zero count implies unassociated.
hash_digest get_top_confirmed_hash() const NOEXCEPT;
hash_digest get_top_candidate_hash() const NOEXCEPT;
hashes get_tx_keys(const header_link& link) const NOEXCEPT;
size_t get_tx_count(const header_link& link) const NOEXCEPT;
inline hash_digest get_header_key(const header_link& link) const NOEXCEPT;
Expand Down
Loading