mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-10 11:33:46 +02:00
[addrman] Merge the two Add() functions
Merge the two definitions of this overloaded function to reduce code duplication.
This commit is contained in:
@@ -951,7 +951,7 @@ static RPCHelpMan addpeeraddress()
|
||||
address.nTime = GetAdjustedTime();
|
||||
// The source address is set equal to the address. This is equivalent to the peer
|
||||
// announcing itself.
|
||||
if (node.addrman->Add(address, address)) success = true;
|
||||
if (node.addrman->Add({address}, address)) success = true;
|
||||
}
|
||||
|
||||
obj.pushKV("success", success);
|
||||
|
Reference in New Issue
Block a user