aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.h
diff options
context:
space:
mode:
authorJonas Schnelli <jonas.schnelli@include7.ch>2015-06-19 15:27:37 +0200
committerJonas Schnelli <jonas.schnelli@include7.ch>2015-07-02 20:29:36 +0200
commitf581d3d656cf269ea09ac6f130f4bd70b40a9e55 (patch)
treed598d6e1842273946fbbfb7b91744b9e6ca73c4b /src/netbase.h
parentd6db1157bcab7ace13f046bdfa107b456c1dfbe3 (diff)
banlist.dat: store banlist on disk
Diffstat (limited to 'src/netbase.h')
-rw-r--r--src/netbase.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/netbase.h b/src/netbase.h
index 27f0eac2a2..48c2d3455e 100644
--- a/src/netbase.h
+++ b/src/netbase.h
@@ -126,6 +126,15 @@ class CSubNet
friend bool operator==(const CSubNet& a, const CSubNet& b);
friend bool operator!=(const CSubNet& a, const CSubNet& b);
friend bool operator<(const CSubNet& a, const CSubNet& b);
+
+ ADD_SERIALIZE_METHODS;
+
+ template <typename Stream, typename Operation>
+ inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) {
+ READWRITE(network);
+ READWRITE(FLATDATA(netmask));
+ READWRITE(FLATDATA(valid));
+ }
};
/** A combination of a network address (CNetAddr) and a (TCP) port */