File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,9 @@ struct PSBTProprietary
8989template <typename Stream, typename ... X>
9090void SerializeToVector (Stream& s, const X&... args)
9191{
92- WriteCompactSize (s, GetSerializeSizeMany (s.GetVersion (), args...));
92+ SizeComputer sizecomp;
93+ SerializeMany (sizecomp, args...);
94+ WriteCompactSize (s, sizecomp.size ());
9395 SerializeMany (s, args...);
9496}
9597
Original file line number Diff line number Diff line change @@ -1126,14 +1126,6 @@ size_t GetSerializeSize(const T& t, int nVersion = 0)
11261126 return (SizeComputer () << t).size ();
11271127}
11281128
1129- template <typename ... T>
1130- size_t GetSerializeSizeMany (int nVersion, const T&... t)
1131- {
1132- SizeComputer sc;
1133- SerializeMany (sc, t...);
1134- return sc.size ();
1135- }
1136-
11371129/* * Wrapper that overrides the GetParams() function of a stream (and hides GetVersion/GetType). */
11381130template <typename Params, typename SubStream>
11391131class ParamsStream
You can’t perform that action at this time.
0 commit comments