aboutsummaryrefslogtreecommitdiff
path: root/src/script/sign.h
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2018-06-14 19:48:30 -0500
committerBen Woosley <ben.woosley@gmail.com>2018-09-11 00:58:13 -0400
commit893628be0166b4096b6e52f516e0f65bb63a75a2 (patch)
tree59b7512c8f429312dd137429251c0df9f89942a4 /src/script/sign.h
parentda74db0940720407fafaf3582bbaf9c81a4d3b4d (diff)
downloadbitcoin-893628be0166b4096b6e52f516e0f65bb63a75a2.tar.xz
Drop minor GetSerializeSize template
Now that `GetType()` is not propagated, the benefits are not worth the code.
Diffstat (limited to 'src/script/sign.h')
-rw-r--r--src/script/sign.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/sign.h b/src/script/sign.h
index 18b7320998..2fc4575e59 100644
--- a/src/script/sign.h
+++ b/src/script/sign.h
@@ -147,7 +147,7 @@ static constexpr uint8_t PSBT_SEPARATOR = 0x00;
template<typename Stream, typename... X>
void SerializeToVector(Stream& s, const X&... args)
{
- WriteCompactSize(s, GetSerializeSizeMany(s, args...));
+ WriteCompactSize(s, GetSerializeSizeMany(s.GetVersion(), args...));
SerializeMany(s, args...);
}