aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/net.cpp
diff options
context:
space:
mode:
authorAmiti Uttarwar <amiti@uttarwar.org>2021-07-22 17:00:36 -0700
committerAmiti Uttarwar <amiti@uttarwar.org>2021-08-15 22:35:13 -0700
commit60e0cbdd574bb9109bcad1e0c27c7936a534a0e7 (patch)
treeb3c49dced04e42234b507682e033706b99d12232 /src/rpc/net.cpp
parent3facf0a8ae99a03f5e2fb709b8d86c47328d363c (diff)
downloadbitcoin-60e0cbdd574bb9109bcad1e0c27c7936a534a0e7.tar.xz
[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.cpp2
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);