diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-05-05 11:26:11 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-05-05 11:26:11 +0200 |
commit | ed09652a174e80cff78f0bfb9e586292d4a1575f (patch) | |
tree | 5d850c07106bb483fdaba054c4759cc6d075cc56 /src/p2p/net_peerlist_boost_serialization.h | |
parent | Merge pull request #1997 (diff) | |
parent | Add anchor connections (diff) | |
download | monero-ed09652a174e80cff78f0bfb9e586292d4a1575f.tar.xz |
Merge pull request #1701
8277e67f Add anchor connections (Miguel Herranz)
Diffstat (limited to 'src/p2p/net_peerlist_boost_serialization.h')
-rw-r--r-- | src/p2p/net_peerlist_boost_serialization.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/p2p/net_peerlist_boost_serialization.h b/src/p2p/net_peerlist_boost_serialization.h index 260f16919..6891ac80c 100644 --- a/src/p2p/net_peerlist_boost_serialization.h +++ b/src/p2p/net_peerlist_boost_serialization.h @@ -49,6 +49,14 @@ namespace boost a & pl.adr; a & pl.id; a & pl.last_seen; - } + } + + template <class Archive, class ver_type> + inline void serialize(Archive &a, nodetool::anchor_peerlist_entry& pl, const ver_type ver) + { + a & pl.adr; + a & pl.id; + a & pl.first_seen; + } } } |