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
89
89
template <typename Stream, typename ... X>
90
90
void SerializeToVector (Stream& s, const X&... args)
91
91
{
92
- WriteCompactSize (s, GetSerializeSizeMany (s.GetVersion (), args...));
92
+ SizeComputer sizecomp;
93
+ SerializeMany (sizecomp, args...);
94
+ WriteCompactSize (s, sizecomp.size ());
93
95
SerializeMany (s, args...);
94
96
}
95
97
Original file line number Diff line number Diff line change @@ -1126,14 +1126,6 @@ size_t GetSerializeSize(const T& t, int nVersion = 0)
1126
1126
return (SizeComputer () << t).size ();
1127
1127
}
1128
1128
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
-
1137
1129
/* * Wrapper that overrides the GetParams() function of a stream (and hides GetVersion/GetType). */
1138
1130
template <typename Params, typename SubStream>
1139
1131
class ParamsStream
You can’t perform that action at this time.
0 commit comments