diff --git a/include/bitcoin/node/protocols/protocol_block_in_31800.hpp b/include/bitcoin/node/protocols/protocol_block_in_31800.hpp index 729706e1..fd4efe5e 100644 --- a/include/bitcoin/node/protocols/protocol_block_in_31800.hpp +++ b/include/bitcoin/node/protocols/protocol_block_in_31800.hpp @@ -76,10 +76,6 @@ class BCN_API protocol_block_in_31800 private: using type_id = network::messages::inventory::type_id; - // HACK - void complete(const code& ec, const system::chain::block::cptr& block, - size_t height) const NOEXCEPT; - code check(const system::chain::block& block, const system::chain::context& ctx, bool bypass) const NOEXCEPT; diff --git a/src/protocols/protocol_block_in_31800.cpp b/src/protocols/protocol_block_in_31800.cpp index 04e2a116..ea24b70e 100644 --- a/src/protocols/protocol_block_in_31800.cpp +++ b/src/protocols/protocol_block_in_31800.cpp @@ -370,8 +370,8 @@ bool protocol_block_in_31800::handle_receive_block(const code& ec, LOGP("Downloaded block [" << encode_hash(hash) << ":" << height << "] from [" << authority() << "]."); - ////notify(ec, chase::checked, height); - ////fire(events::block_archived, height); + notify(ec, chase::checked, height); + fire(events::block_archived, height); count(size); map_->erase(it); @@ -384,19 +384,6 @@ bool protocol_block_in_31800::handle_receive_block(const code& ec, return true; } -void protocol_block_in_31800::complete(const code& ec, - const chain::block::cptr& block, size_t height) const NOEXCEPT -{ - if (block->is_valid()) - { - ////const auto wire = block->serialized_size(true); - ////const auto allocated = block->get_allocation(); - ////const auto ratio = static_cast((100.0 * allocated) / wire); - notify(ec, chase::checked, height); - fire(events::block_archived, height); - } -} - // Header state is checked by organize. code protocol_block_in_31800::check(const chain::block& block, const chain::context& ctx, bool bypass) const NOEXCEPT