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

Method start_synchronizing_with_peer

libraries/net/node.cpp:3834–3844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3832 }
3833
3834 void node_impl::start_synchronizing_with_peer( const peer_connection_ptr& peer )
3835 {
3836 VERIFY_CORRECT_THREAD();
3837 peer->ids_of_items_to_get.clear();
3838 peer->number_of_unfetched_item_ids = 0;
3839 peer->we_need_sync_items_from_peer = true;
3840 peer->last_block_delegate_has_seen = item_hash_t();
3841 peer->last_block_time_delegate_has_seen = _delegate->get_block_time(item_hash_t());
3842 peer->inhibit_fetching_sync_blocks = false;
3843 fetch_next_batch_of_item_ids_from_peer( peer.get() );
3844 }
3845
3846 void node_impl::start_synchronizing()
3847 {

Callers

nothing calls this directly

Calls 3

get_block_timeMethod · 0.80
clearMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected