diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-01-18 01:05:58 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-04 22:38:03 +0000 |
commit | e396146aeebd61d6a26003045d554f6e94d5f028 (patch) | |
tree | d0abbc7b2feb1325435c149c9f9309063e9fc670 /src/p2p/net_node.h | |
parent | various: remove unused variables (diff) | |
download | monero-e396146aeebd61d6a26003045d554f6e94d5f028.tar.xz |
default initialize rpc structures
Diffstat (limited to 'src/p2p/net_node.h')
-rw-r--r-- | src/p2p/net_node.h | 5 |
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 { |