aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/p2p_protocol_defs.h
diff options
context:
space:
mode:
authorMiguel Herranz <miguel@ipglider.org>2017-02-09 01:11:58 +0100
committerMiguel Herranz <miguel@ipglider.org>2017-02-10 23:28:54 +0100
commit8277e67f112fcf066b4530616560efec87f0b20e (patch)
tree3e842ce521cf06ab9e3b20fa52be2fbe72ccf4df /src/p2p/p2p_protocol_defs.h
parentMerge pull request #1679 (diff)
downloadmonero-8277e67f112fcf066b4530616560efec87f0b20e.tar.xz
Add anchor connections
Based on https://eprint.iacr.org/2015/263.pdf 4. Anchor connections. Peer list serialisation version bumped to 5.
Diffstat (limited to 'src/p2p/p2p_protocol_defs.h')
-rw-r--r--src/p2p/p2p_protocol_defs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/p2p/p2p_protocol_defs.h b/src/p2p/p2p_protocol_defs.h
index 6d6ac7b98..dc738d92c 100644
--- a/src/p2p/p2p_protocol_defs.h
+++ b/src/p2p/p2p_protocol_defs.h
@@ -56,6 +56,13 @@ namespace nodetool
int64_t last_seen;
};
+ struct anchor_peerlist_entry
+ {
+ net_address adr;
+ peerid_type id;
+ int64_t first_seen;
+ };
+
struct connection_entry
{
net_address adr;