@@ -39,35 +39,22 @@ class BCN_API chaser_validate
3939 chaser_validate (full_node& node) NOEXCEPT;
4040
4141 code start () NOEXCEPT override ;
42-
43- // / Validate a populated candidate block.
44- virtual void validate (const system::chain::block::cptr& block,
45- const database::header_link& link, size_t height) NOEXCEPT;
42+ void stopping (const code& ec) NOEXCEPT override ;
43+ void stop () NOEXCEPT override ;
4644
4745protected:
4846 typedef network::race_unity<const code&, const database::tx_link&> race;
4947
5048 virtual bool handle_event (const code& ec, chase event_,
5149 event_value value) NOEXCEPT;
5250
53- virtual void do_validate (const system::chain::block::cptr& block,
54- database::header_link::integer link, size_t height) NOEXCEPT;
55-
5651 virtual void do_regressed (height_t branch_point) NOEXCEPT;
5752 virtual void do_checked (height_t height) NOEXCEPT;
5853 virtual void do_bump (height_t height) NOEXCEPT;
5954
60- virtual bool enqueue_block (const database::header_link& link) NOEXCEPT;
61- virtual void validate_tx (const database::context& ctx,
62- const database::tx_link& link, const race::ptr& racer) NOEXCEPT;
63- virtual void handle_tx (const code& ec, const database::tx_link& tx,
64- const race::ptr& racer) NOEXCEPT;
65- virtual void handle_txs (const code& ec, const database::tx_link& tx,
66- const database::header_link& link,
67- const database::context& ctx) NOEXCEPT;
68- virtual void validate_block (const code& ec,
69- const database::header_link& link,
70- const database::context& ctx) NOEXCEPT;
55+ virtual void validate_block (const database::header_link& link) NOEXCEPT;
56+ virtual void complete_block (const code& ec,
57+ const database::header_link& link, size_t height) NOEXCEPT;
7158
7259private:
7360 // neutrino
@@ -78,12 +65,16 @@ class BCN_API chaser_validate
7865 const system::chain::block& block) NOEXCEPT;
7966
8067 // These are thread safe.
68+ const bool prepopulate_;
69+ const bool concurrent_;
70+ const size_t maximum_backlog_;
8171 const uint64_t initial_subsidy_;
82- const uint32_t subsidy_interval_blocks_ ;
72+ const uint32_t subsidy_interval_ ;
8373
8474 // These are protected by strand.
8575 network::threadpool threadpool_;
8676 system::hash_digest neutrino_{};
77+ size_t validation_backlog_{};
8778};
8879
8980} // namespace node
0 commit comments