MCPcopy Create free account
hub / github.com/cryptonomex/graphene / sync_from

Method sync_from

libraries/net/node.cpp:4877–4884  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4875 }
4876
4877 void node_impl::sync_from(const item_id& current_head_block, const std::vector<uint32_t>& hard_fork_block_numbers)
4878 {
4879 VERIFY_CORRECT_THREAD();
4880 _most_recent_blocks_accepted.clear();
4881 _sync_item_type = current_head_block.item_type;
4882 _most_recent_blocks_accepted.push_back(current_head_block.item_hash);
4883 _hard_fork_block_numbers = hard_fork_block_numbers;
4884 }
4885
4886 bool node_impl::is_connected() const
4887 {

Callers 1

application.cppFile · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected