Skip to content

Commit 951203b

Browse files
committed
net: Simplify ParamsStream usage
Simplify ParamsStream usage in ConvertSeeds now that ParamsStream supports rvalue substream arguments.
1 parent e6794e4 commit 951203b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/net.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,7 @@ static std::vector<CAddress> ConvertSeeds(const std::vector<uint8_t> &vSeedsIn)
198198
const auto one_week{7 * 24h};
199199
std::vector<CAddress> vSeedsOut;
200200
FastRandomContext rng;
201-
DataStream underlying_stream{vSeedsIn};
202-
ParamsStream s{underlying_stream, CAddress::V2_NETWORK};
201+
ParamsStream s{DataStream{vSeedsIn}, CAddress::V2_NETWORK};
203202
while (!s.eof()) {
204203
CService endpoint;
205204
s >> endpoint;

0 commit comments

Comments
 (0)