diff options
author | John Newbery <john@johnnewbery.com> | 2020-07-23 18:10:35 +0100 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2020-08-12 09:22:10 +0100 |
commit | 37a480e0cd94895b6051abef12d984ff74bdc4a3 (patch) | |
tree | 2885b0f7c992305d28df604b3913bc3d6ac87b8d /src/net.cpp | |
parent | ae8051bbd8377f2458ff1f167dc30c2d5f83e317 (diff) |
[net] Add addpeeraddress RPC method
Allows addresses to be added to Address Manager for testing.
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp index 931c08a71e..3fd3f19b5c 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2523,9 +2523,9 @@ void CConnman::MarkAddressGood(const CAddress& addr) addrman.Good(addr); } -void CConnman::AddNewAddresses(const std::vector<CAddress>& vAddr, const CAddress& addrFrom, int64_t nTimePenalty) +bool CConnman::AddNewAddresses(const std::vector<CAddress>& vAddr, const CAddress& addrFrom, int64_t nTimePenalty) { - addrman.Add(vAddr, addrFrom, nTimePenalty); + return addrman.Add(vAddr, addrFrom, nTimePenalty); } std::vector<CAddress> CConnman::GetAddresses(size_t max_addresses, size_t max_pct) |