mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Merge e77339632e into merged_master (Bitcoin PR bitcoin/bitcoin#28136)
This commit is contained in:
commit
d0c39be53c
6 changed files with 16 additions and 16 deletions
|
|
@ -16,6 +16,7 @@
|
|||
#include <netbase.h>
|
||||
#include <node/context.h>
|
||||
#include <policy/settings.h>
|
||||
#include <protocol.h>
|
||||
#include <rpc/blockchain.h>
|
||||
#include <rpc/protocol.h>
|
||||
#include <rpc/server_util.h>
|
||||
|
|
@ -98,6 +99,18 @@ static RPCHelpMan ping()
|
|||
};
|
||||
}
|
||||
|
||||
/** Returns, given services flags, a list of humanly readable (known) network services */
|
||||
static UniValue GetServicesNames(ServiceFlags services)
|
||||
{
|
||||
UniValue servicesNames(UniValue::VARR);
|
||||
|
||||
for (const auto& flag : serviceFlagsToStr(services)) {
|
||||
servicesNames.push_back(flag);
|
||||
}
|
||||
|
||||
return servicesNames;
|
||||
}
|
||||
|
||||
static RPCHelpMan getpeerinfo()
|
||||
{
|
||||
return RPCHelpMan{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue