diff options
| author | Pieter Wuille <[email protected]> | 2019-02-16 15:24:15 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2019-05-10 14:31:21 -0700 |
| commit | fb90ec3c33e824f5abb6a68452c683d6ce8b3e4a (patch) | |
| tree | a03bedacd78630ec669ccefbe445ee971c1e4184 /src/rpc/util.h | |
| parent | Abstract out IsSegWitOutput from utxoupdatepsbt (diff) | |
| download | discoin-fb90ec3c33e824f5abb6a68452c683d6ce8b3e4a.tar.xz discoin-fb90ec3c33e824f5abb6a68452c683d6ce8b3e4a.zip | |
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 e4fa8fc3d..ce485a209 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, |