mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +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
|
|
@ -8,6 +8,7 @@
|
|||
#include <crypto/hmac_sha256.h>
|
||||
#include <httpserver.h>
|
||||
#include <logging.h>
|
||||
#include <netaddress.h>
|
||||
#include <rpc/protocol.h>
|
||||
#include <rpc/server.h>
|
||||
#include <util/strencodings.h>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
#include <txmempool.h>
|
||||
#include <util/any.h>
|
||||
#include <util/check.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <validation.h>
|
||||
#include <version.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
#include <univalue.h>
|
||||
#include <util/fs.h>
|
||||
#include <util/moneystr.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <util/time.h>
|
||||
|
||||
#include <utility>
|
||||
|
|
|
|||
|
|
@ -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{
|
||||
|
|
|
|||
|
|
@ -1320,17 +1320,6 @@ std::vector<CScript> EvalDescriptorStringOrObject(const UniValue& scanobject, Fl
|
|||
return ret;
|
||||
}
|
||||
|
||||
UniValue GetServicesNames(ServiceFlags services)
|
||||
{
|
||||
UniValue servicesNames(UniValue::VARR);
|
||||
|
||||
for (const auto& flag : serviceFlagsToStr(services)) {
|
||||
servicesNames.push_back(flag);
|
||||
}
|
||||
|
||||
return servicesNames;
|
||||
}
|
||||
|
||||
//
|
||||
// ELEMENTS
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
#include <consensus/amount.h>
|
||||
#include <node/transaction.h>
|
||||
#include <outputtype.h>
|
||||
#include <protocol.h>
|
||||
#include <pubkey.h>
|
||||
#include <rpc/protocol.h>
|
||||
#include <rpc/request.h>
|
||||
|
|
@ -60,7 +59,6 @@ extern const std::string UNIX_EPOCH_TIME;
|
|||
extern const std::string EXAMPLE_ADDRESS[2];
|
||||
|
||||
class FillableSigningProvider;
|
||||
class CPubKey;
|
||||
class CScript;
|
||||
struct Sections;
|
||||
|
||||
|
|
@ -138,9 +136,6 @@ std::pair<int64_t, int64_t> ParseDescriptorRange(const UniValue& value);
|
|||
/** Evaluate a descriptor given as a string, or as a {"desc":...,"range":...} object, with default range of 1000. */
|
||||
std::vector<CScript> EvalDescriptorStringOrObject(const UniValue& scanobject, FlatSigningProvider& provider, const bool expand_priv = false);
|
||||
|
||||
/** Returns, given services flags, a list of humanly readable (known) network services */
|
||||
UniValue GetServicesNames(ServiceFlags services);
|
||||
|
||||
/**
|
||||
* Serializing JSON objects depends on the outer type. Only arrays and
|
||||
* dictionaries can be nested in json. The top-level outer type is "NONE".
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue