net: Simplify ParamsStream usage
Simplify ParamsStream usage in ConvertSeeds now that ParamsStream supports rvalue substream arguments.
This commit is contained in:
1 parent
e6794e475c
commit
951203bcc4
1 file changed
+1
-2
+1
-2
@@ -198,8 +198,7 @@ static std::vector<CAddress> ConvertSeeds(const std::vector<uint8_t> &vSeedsIn)
|
|||||||
const auto one_week{7 * 24h};
|
const auto one_week{7 * 24h};
|
||||||
std::vector<CAddress> vSeedsOut;
|
std::vector<CAddress> vSeedsOut;
|
||||||
FastRandomContext rng;
|
FastRandomContext rng;
|
||||||
DataStream underlying_stream{vSeedsIn};
|
ParamsStream s{DataStream{vSeedsIn}, CAddress::V2_NETWORK};
|
||||||
ParamsStream s{underlying_stream, CAddress::V2_NETWORK};
|
|
||||||
while (!s.eof()) {
|
while (!s.eof()) {
|
||||||
CService endpoint;
|
CService endpoint;
|
||||||
s >> endpoint;
|
s >> endpoint;
|
||||||
|
|||||||
Reference in new issue
Block a user