aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-01-18 01:05:58 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-04 22:38:03 +0000
commite396146aeebd61d6a26003045d554f6e94d5f028 (patch)
treed0abbc7b2feb1325435c149c9f9309063e9fc670 /src/p2p/net_node.h
parentvarious: remove unused variables (diff)
downloadmonero-e396146aeebd61d6a26003045d554f6e94d5f028.tar.xz
default initialize rpc structures
Diffstat (limited to 'src/p2p/net_node.h')
-rw-r--r--src/p2p/net_node.h5
1 files changed, 3 insertions, 2 deletions
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<p2p_connection_context>(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<uint64_t>()),
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_t> config;
struct network_zone
{