diff --git a/libraries/net/node.cpp b/libraries/net/node.cpp index cf4b8d05af..dc3371e8bb 100644 --- a/libraries/net/node.cpp +++ b/libraries/net/node.cpp @@ -5012,6 +5012,9 @@ namespace graphene { namespace net { _node_configuration.private_key = fc::ecc::private_key::generate(); } + // Private key could have been overridden at this point. Update public key just in case + _node_public_key = _node_configuration.private_key.get_public_key().serialize(); + if( _node_configuration.desired_number_of_connections > _node_configuration.maximum_number_of_connections ) { wlog( "Reducing desired_number_of_connections from ${x0} to maximum_number_of_connections=${x1}", diff --git a/libraries/plugins/p2p/p2p_plugin.cpp b/libraries/plugins/p2p/p2p_plugin.cpp index 020b1f0f50..943d8179d7 100644 --- a/libraries/plugins/p2p/p2p_plugin.cpp +++ b/libraries/plugins/p2p/p2p_plugin.cpp @@ -479,7 +479,7 @@ void p2p_plugin::set_program_options( bpo::options_description& cli, bpo::option ("p2p-max-connections", bpo::value(), "Maxmimum number of incoming connections on P2P endpoint.") ("seed-node", bpo::value>()->composing(), "The IP address and port of a remote peer to sync with. Deprecated in favor of p2p-seed-node.") ("p2p-seed-node", bpo::value>()->composing(), "The IP address and port of a remote peer to sync with.") - ("p2p-parameters", bpo::value()->default_value(fc::json::to_string(graphene::net::node_configuration())), "P2P network parameters") + ("p2p-parameters", bpo::value(), ("P2P network parameters. (Default: " + fc::json::to_string(graphene::net::node_configuration()) + " )").c_str() ) ; cli.add_options() ("force-validate", bpo::bool_switch()->default_value(false), "Force validation of all transactions. Deprecated in favor of p2p-force-validate" )