[net] Add addpeeraddress RPC method

Allows addresses to be added to Address Manager for testing.
This commit is contained in:
John Newbery
2020-07-23 18:10:35 +01:00
parent ae8051bbd8
commit 37a480e0cd
5 changed files with 66 additions and 22 deletions

View File

@@ -173,6 +173,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
{ "createwallet", 4, "avoid_reuse"},
{ "createwallet", 5, "descriptors"},
{ "getnodeaddresses", 0, "count"},
{ "addpeeraddress", 1, "port"},
{ "stop", 0, "wait" },
};
// clang-format on