From e396146aeebd61d6a26003045d554f6e94d5f028 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 18 Jan 2019 01:05:58 +0000 Subject: default initialize rpc structures --- src/p2p/net_node.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/p2p/net_node.h') diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h index 58e3c8857..4c5f788c3 100644 --- a/src/p2p/net_node.h +++ b/src/p2p/net_node.h @@ -131,9 +131,9 @@ namespace nodetool struct network_zone; using connect_func = boost::optional(network_zone&, epee::net_utils::network_address const&, epee::net_utils::ssl_support_t); - struct config + struct config_t { - config() + config_t() : m_net_config(), m_peer_id(crypto::rand()), m_support_flags(0) @@ -143,6 +143,7 @@ namespace nodetool uint64_t m_peer_id; uint32_t m_support_flags; }; + typedef epee::misc_utils::struct_init config; struct network_zone { -- cgit v1.2.3