aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_peerlist_boost_serialization.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-05-05 11:26:11 +0200
committerRiccardo Spagni <ric@spagni.net>2017-05-05 11:26:11 +0200
commited09652a174e80cff78f0bfb9e586292d4a1575f (patch)
tree5d850c07106bb483fdaba054c4759cc6d075cc56 /src/p2p/net_peerlist_boost_serialization.h
parentMerge pull request #1997 (diff)
parentAdd anchor connections (diff)
downloadmonero-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.h10
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;
+ }
}
}