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.h | |
parent | ae8051bbd8377f2458ff1f167dc30c2d5f83e317 (diff) | |
download | bitcoin-37a480e0cd94895b6051abef12d984ff74bdc4a3.tar.xz |
[net] Add addpeeraddress RPC method
Allows addresses to be added to Address Manager for testing.
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -250,7 +250,7 @@ public: // Addrman functions void SetServices(const CService &addr, ServiceFlags nServices); void MarkAddressGood(const CAddress& addr); - void AddNewAddresses(const std::vector<CAddress>& vAddr, const CAddress& addrFrom, int64_t nTimePenalty = 0); + bool AddNewAddresses(const std::vector<CAddress>& vAddr, const CAddress& addrFrom, int64_t nTimePenalty = 0); std::vector<CAddress> GetAddresses(size_t max_addresses, size_t max_pct); /** * Cache is used to minimize topology leaks, so it should |