| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected