@@ -54,7 +54,7 @@ class chaser_organize
5454 chain_state::cptr state;
5555 };
5656 using block_tree = std::unordered_map<system::hash_cref, block_state>;
57- using header_links = std_vector< database::header_link> ;
57+ using header_link = database::header_link;
5858
5959 // / Protected constructor for abstract base.
6060 chaser_organize (full_node& node) NOEXCEPT;
@@ -66,9 +66,9 @@ class chaser_organize
6666 virtual const system::chain::header& get_header (
6767 const Block& block) const NOEXCEPT = 0;
6868
69- // / Query store for const pointer to Block instance by candidate height .
69+ // / Query store for const pointer to Block instance by link .
7070 virtual bool get_block (typename Block::cptr& out,
71- size_t height ) const NOEXCEPT = 0;
71+ const header_link& link ) const NOEXCEPT = 0;
7272
7373 // / Determine if Block is a duplicate (success for not duplicate).
7474 virtual code duplicate (size_t & height,
@@ -112,6 +112,9 @@ class chaser_organize
112112 virtual const system::settings& settings () const NOEXCEPT;
113113
114114private:
115+ using header_links = database::header_links;
116+ using header_states = database::header_states;
117+
115118 // Template differetiators.
116119 // ------------------------------------------------------------------------
117120
@@ -162,14 +165,10 @@ class chaser_organize
162165 const system::hash_digest& previous_hash) const NOEXCEPT;
163166
164167 // Sum of work from header to branch point (excluded).
165- bool get_branch_work (uint256_t & branch_work, size_t & branch_point,
166- system::hashes& tree_branch, header_links & store_branch,
168+ bool get_branch_work (uint256_t & branch_work,
169+ system::hashes& tree_branch, header_states & store_branch,
167170 const system::chain::header& header) const NOEXCEPT;
168171
169- // True if work represents a stronger candidate branch.
170- bool get_is_strong (bool & strong, const uint256_t & branch_work,
171- size_t branch_point) const NOEXCEPT;
172-
173172 // Logging.
174173 // ------------------------------------------------------------------------
175174
0 commit comments