mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
[net] Add addpeeraddress RPC method
Allows addresses to be added to Address Manager for testing.
This commit is contained in:
parent
ae8051bbd8
commit
37a480e0cd
5 changed files with 66 additions and 22 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue