File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,18 @@ inline bool CLASS::is_valid(const header_link& link) const NOEXCEPT
8686// Empty/null_hash implies fault, zero count implies unassociated.
8787// ----------------------------------------------------------------------------
8888
89+ TEMPLATE
90+ hash_digest CLASS::get_top_confirmed_hash () const NOEXCEPT
91+ {
92+ return get_header_key (to_confirmed (get_top_confirmed ()));
93+ }
94+
95+ TEMPLATE
96+ hash_digest CLASS::get_top_candidate_hash () const NOEXCEPT
97+ {
98+ return get_header_key (to_candidate (get_top_candidate ()));
99+ }
100+
89101TEMPLATE
90102hashes CLASS::get_tx_keys (const header_link& link) const NOEXCEPT
91103{
Original file line number Diff line number Diff line change @@ -331,6 +331,8 @@ class query
331331 inline bool is_valid (const header_link& link) const NOEXCEPT;
332332
333333 // / Empty/null_hash implies fault, zero count implies unassociated.
334+ hash_digest get_top_confirmed_hash () const NOEXCEPT;
335+ hash_digest get_top_candidate_hash () const NOEXCEPT;
334336 hashes get_tx_keys (const header_link& link) const NOEXCEPT;
335337 size_t get_tx_count (const header_link& link) const NOEXCEPT;
336338 inline hash_digest get_header_key (const header_link& link) const NOEXCEPT;
You can’t perform that action at this time.
0 commit comments