MCPcopy Create free account
hub / github.com/bitshares/bitshares-core / set_node_delegate

Method set_node_delegate

libraries/net/node.cpp:4192–4200  ·  view source on GitHub ↗

methods implementing node's public interface

Source from the content-addressed store, hash-verified

4190
4191 // methods implementing node's public interface
4192 void node_impl::set_node_delegate(std::shared_ptr<node_delegate> del, fc::thread* thread_for_delegate_calls)
4193 {
4194 VERIFY_CORRECT_THREAD();
4195 _delegate.reset();
4196 if (del)
4197 _delegate = std::make_unique<statistics_gathering_node_delegate_wrapper>(del, thread_for_delegate_calls);
4198 if( _delegate )
4199 _chain_id = del->get_chain_id();
4200 }
4201
4202 void node_impl::load_configuration( const fc::path& configuration_directory )
4203 {

Callers 1

application.cppFile · 0.80

Calls 2

resetMethod · 0.45
get_chain_idMethod · 0.45

Tested by

no test coverage detected