serialization: Reverse ParamsStream constructor order

Move parameter argument after stream argument so will be possible to accept
multiple variadic parameter arguments in the following commit.

Also reverse template parameter order for consistency.
This commit is contained in:
Ryan Ofsky
2023-11-22 16:39:32 -05:00
parent 83436d14f0
commit cb28849a88
3 changed files with 7 additions and 7 deletions

View File

@@ -199,7 +199,7 @@ static std::vector<CAddress> ConvertSeeds(const std::vector<uint8_t> &vSeedsIn)
std::vector<CAddress> vSeedsOut;
FastRandomContext rng;
DataStream underlying_stream{vSeedsIn};
ParamsStream s{CAddress::V2_NETWORK, underlying_stream};
ParamsStream s{underlying_stream, CAddress::V2_NETWORK};
while (!s.eof()) {
CService endpoint;
s >> endpoint;