aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/util.h
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2023-07-21 13:47:43 +0200
committerTheCharlatan <seb.kung@gmail.com>2023-07-25 17:40:02 +0200
commit10eb3a9faa977371facacee937b2e6dc26f008e0 (patch)
tree1859279e30a7692bcb24f23ddca58b923c791ced /src/rpc/util.h
parent4a1aae67498ff8e9aa7ce97fef70b973c604f892 (diff)
kernel: Split ParseSighashString
This split is done in preparation for the next commit where the dependency on UniValue in the kernel library is removed.
Diffstat (limited to 'src/rpc/util.h')
-rw-r--r--src/rpc/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rpc/util.h b/src/rpc/util.h
index 4cba5a9818..02d26f1ab7 100644
--- a/src/rpc/util.h
+++ b/src/rpc/util.h
@@ -100,6 +100,9 @@ CTxDestination AddAndGetMultisigDestination(const int required, const std::vecto
UniValue DescribeAddress(const CTxDestination& dest);
+/** Parse a sighash string representation and raise an RPC error if it is invalid. */
+int ParseSighashString(const UniValue& sighash);
+
//! Parse a confirm target option and raise an RPC error if it is invalid.
unsigned int ParseConfirmTarget(const UniValue& value, unsigned int max_target);