diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-01-22 11:47:43 -0500 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-01-22 11:47:43 -0500 |
commit | add98edfc32ce402dd092a913e35ab9c91aec374 (patch) | |
tree | 5374ed53ec86a1c4dbbfd0385de2a510ff1b1bc0 /src/p2p/net_node.h | |
parent | Merge pull request #1607 (diff) | |
parent | p2p: always recreate a new peer id on startup (diff) | |
download | monero-add98edfc32ce402dd092a913e35ab9c91aec374.tar.xz |
Merge pull request #1609
4cdf0a35 p2p: always recreate a new peer id on startup (moneromooo-monero)
Diffstat (limited to 'src/p2p/net_node.h')
-rw-r--r-- | src/p2p/net_node.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h index f5309b1c3..40598fc0f 100644 --- a/src/p2p/net_node.h +++ b/src/p2p/net_node.h @@ -110,7 +110,12 @@ namespace nodetool void serialize(Archive &a, const t_version_type ver) { a & m_peerlist; - a & m_config.m_peer_id; + if (ver == 0) + { + // from v1, we do not store the peer id anymore + peerid_type peer_id; + a & peer_id; + } } // debug functions bool log_peerlist(); @@ -162,6 +167,7 @@ namespace nodetool #endif int handle_get_support_flags(int command, COMMAND_REQUEST_SUPPORT_FLAGS::request& arg, COMMAND_REQUEST_SUPPORT_FLAGS::response& rsp, p2p_connection_context& context); bool init_config(); + bool make_default_peer_id(); bool make_default_config(); bool store_config(); bool check_trust(const proof_of_trust& tr); |