aboutsummaryrefslogtreecommitdiff
path: root/src/streams.h
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2018-12-02 01:56:12 -0800
committerBen Woosley <ben.woosley@gmail.com>2019-01-03 09:10:27 -0800
commit75778a0724b73a0cecd99bd2e1c49fbfdb90e194 (patch)
treecb2aca429692e38b6edb2909238068f09de2971c /src/streams.h
parented12fd83ca7999a896350197533de5e9202bc2fe (diff)
downloadbitcoin-75778a0724b73a0cecd99bd2e1c49fbfdb90e194.tar.xz
test: Correct ineffectual WithOrVersion from transactions_tests
WithOrVersion uses | to combine the versions, and | with 0 is a no-op. Instead I run it with PROTOCOL_VERSION and 0 separately, as the original code only tested PROTOCOL_VERSION but apparently only intended to test version 0. Introduced in ab48c5e72156b34300db4a6521cb3c9969be3937 Last updated 81e3228fcb33e8ed32d8b9fbe917444ba080073a
Diffstat (limited to 'src/streams.h')
-rw-r--r--src/streams.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/streams.h b/src/streams.h
index dc20f7a9da..f8aa9cfed1 100644
--- a/src/streams.h
+++ b/src/streams.h
@@ -64,12 +64,6 @@ public:
size_t size() const { return stream->size(); }
};
-template<typename S>
-OverrideStream<S> WithOrVersion(S* s, int nVersionFlag)
-{
- return OverrideStream<S>(s, s->GetType(), s->GetVersion() | nVersionFlag);
-}
-
/* Minimal stream for overwriting and/or appending to an existing byte vector
*
* The referenced vector will grow as necessary