mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
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:
parent
83436d14f0
commit
cb28849a88
3 changed files with 7 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue