diff options
author | Amiti Uttarwar <amiti@uttarwar.org> | 2021-07-22 17:00:36 -0700 |
---|---|---|
committer | Amiti Uttarwar <amiti@uttarwar.org> | 2021-08-15 22:35:13 -0700 |
commit | 60e0cbdd574bb9109bcad1e0c27c7936a534a0e7 (patch) | |
tree | b3c49dced04e42234b507682e033706b99d12232 /src/rpc/net.cpp | |
parent | 3facf0a8ae99a03f5e2fb709b8d86c47328d363c (diff) |
[addrman] Merge the two Add() functions
Merge the two definitions of this overloaded function to reduce code
duplication.
Diffstat (limited to 'src/rpc/net.cpp')
-rw-r--r-- | src/rpc/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index 4d066b8957..861b889118 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -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); |