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

Method save_node_configuration

libraries/net/node.cpp:863–883  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861 }
862
863 void node_impl::save_node_configuration()
864 {
865 VERIFY_CORRECT_THREAD();
866 if( fc::exists(_node_configuration_directory ) )
867 {
868 fc::path configuration_file_name( _node_configuration_directory / NODE_CONFIGURATION_FILENAME );
869 try
870 {
871 fc::json::save_to_file( _node_configuration, configuration_file_name );
872 }
873 catch (const fc::canceled_exception&)
874 {
875 throw;
876 }
877 catch ( const fc::exception& except )
878 {
879 elog( "error writing node configuration to file ${filename}: ${error}",
880 ( "filename", configuration_file_name )("error", except.to_detail_string() ) );
881 }
882 }
883 }
884
885 void node_impl::p2p_network_connect_loop()
886 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected