mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
net: Simplify ParamsStream usage
Simplify ParamsStream usage in ConvertSeeds now that ParamsStream supports rvalue substream arguments.
This commit is contained in:
@@ -198,8 +198,7 @@ static std::vector<CAddress> ConvertSeeds(const std::vector<uint8_t> &vSeedsIn)
|
||||
const auto one_week{7 * 24h};
|
||||
std::vector<CAddress> vSeedsOut;
|
||||
FastRandomContext rng;
|
||||
DataStream underlying_stream{vSeedsIn};
|
||||
ParamsStream s{underlying_stream, CAddress::V2_NETWORK};
|
||||
ParamsStream s{DataStream{vSeedsIn}, CAddress::V2_NETWORK};
|
||||
while (!s.eof()) {
|
||||
CService endpoint;
|
||||
s >> endpoint;
|
||||
|
||||
Reference in New Issue
Block a user