diff options
| author | Jonas Schnelli <[email protected]> | 2015-06-19 15:27:37 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2015-07-02 20:29:36 +0200 |
| commit | f581d3d656cf269ea09ac6f130f4bd70b40a9e55 (patch) | |
| tree | d598d6e1842273946fbbfb7b91744b9e6ca73c4b /src/netbase.h | |
| parent | Merge pull request #6362 (diff) | |
| download | discoin-f581d3d656cf269ea09ac6f130f4bd70b40a9e55.tar.xz discoin-f581d3d656cf269ea09ac6f130f4bd70b40a9e55.zip | |
banlist.dat: store banlist on disk
Diffstat (limited to 'src/netbase.h')
| -rw-r--r-- | src/netbase.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/netbase.h b/src/netbase.h index 27f0eac2a..48c2d3455 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 */ |