diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2020-05-19 17:39:05 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2020-10-09 16:42:49 +0200 |
commit | 201a4596d92d640d5eb7e76cc8d959228fa09dbb (patch) | |
tree | 1f0641dfee1f4d475336a32f3fea930eded9d629 /src/streams.h | |
parent | 1d3ec2a1fda7446323786a52da1fd109c01aa6fb (diff) |
net: CAddress & CAddrMan: (un)serialize as ADDRv2
Change the serialization of `CAddrMan` to serialize its addresses
in ADDRv2/BIP155 format by default. Introduce a new `CAddrMan` format
version (3).
Add support for ADDRv2 format in `CAddress` (un)serialization.
Co-authored-by: Carl Dong <contact@carldong.me>
Diffstat (limited to 'src/streams.h')
-rw-r--r-- | src/streams.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/streams.h b/src/streams.h index 6ce8065da8..c22f5936fd 100644 --- a/src/streams.h +++ b/src/streams.h @@ -60,6 +60,7 @@ public: int GetVersion() const { return nVersion; } int GetType() const { return nType; } size_t size() const { return stream->size(); } + void ignore(size_t size) { return stream->ignore(size); } }; /* Minimal stream for overwriting and/or appending to an existing byte vector |