diff options
author | Anthony Towns <aj@erisian.com.au> | 2023-11-01 22:33:11 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2023-11-16 11:14:10 +1000 |
commit | bf574a75016123309b894da895ab1c7a81731933 (patch) | |
tree | 5a806e73fb094b89e9657031f801b4ae76a3fc72 /src/psbt.h | |
parent | efa9eb6d7c8012fe4ed85699d81c8fe5dd18da1e (diff) |
serialize: drop GetSerializeSizeMany
Diffstat (limited to 'src/psbt.h')
-rw-r--r-- | src/psbt.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/psbt.h b/src/psbt.h index 1fd186f6a5..a14df03837 100644 --- a/src/psbt.h +++ b/src/psbt.h @@ -89,7 +89,9 @@ struct PSBTProprietary template<typename Stream, typename... X> void SerializeToVector(Stream& s, const X&... args) { - WriteCompactSize(s, GetSerializeSizeMany(s.GetVersion(), args...)); + SizeComputer sizecomp; + SerializeMany(sizecomp, args...); + WriteCompactSize(s, sizecomp.size()); SerializeMany(s, args...); } |