aboutsummaryrefslogtreecommitdiff
path: root/src/streams.h
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2020-05-19 17:39:05 +0200
committerVasil Dimov <vd@FreeBSD.org>2020-10-09 16:42:49 +0200
commit201a4596d92d640d5eb7e76cc8d959228fa09dbb (patch)
tree1f0641dfee1f4d475336a32f3fea930eded9d629 /src/streams.h
parent1d3ec2a1fda7446323786a52da1fd109c01aa6fb (diff)
downloadbitcoin-201a4596d92d640d5eb7e76cc8d959228fa09dbb.tar.xz
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.h1
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