p2p, rpc, fuzz: various tiny follow-ups

This commit is contained in:
Jon Atack
2021-06-06 15:49:22 +02:00
parent e033ca1379
commit c274574458
3 changed files with 5 additions and 5 deletions

View File

@@ -939,7 +939,7 @@ static RPCHelpMan addpeeraddress()
bool success{false};
if (LookupHost(addr_string, net_addr, false)) {
CAddress address{CAddress({net_addr, port}, ServiceFlags(NODE_NETWORK | NODE_WITNESS))};
CAddress address{{net_addr, port}, ServiceFlags{NODE_NETWORK | NODE_WITNESS}};
address.nTime = GetAdjustedTime();
// The source address is set equal to the address. This is equivalent to the peer
// announcing itself.