diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2019-02-16 15:24:15 -0800 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2019-05-10 14:31:21 -0700 |
commit | fb90ec3c33e824f5abb6a68452c683d6ce8b3e4a (patch) | |
tree | a03bedacd78630ec669ccefbe445ee971c1e4184 /src/rpc/util.h | |
parent | eaf4f887348a08c620732125ad4430e1a133d434 (diff) |
Abstract out EvalDescriptorStringOrObject from scantxoutset
Diffstat (limited to 'src/rpc/util.h')
-rw-r--r-- | src/rpc/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rpc/util.h b/src/rpc/util.h index e4fa8fc3d7..ce485a2095 100644 --- a/src/rpc/util.h +++ b/src/rpc/util.h @@ -8,6 +8,8 @@ #include <node/transaction.h> #include <pubkey.h> #include <rpc/protocol.h> +#include <script/script.h> +#include <script/sign.h> #include <script/standard.h> #include <univalue.h> @@ -83,6 +85,9 @@ UniValue JSONRPCTransactionError(TransactionError terr, const std::string& err_s //! Parse a JSON range specified as int64, or [int64, int64] 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); + struct RPCArg { enum class Type { OBJ, |