aboutsummaryrefslogtreecommitdiff
path: root/src/core_io.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/core_io.h
parent4a1aae67498ff8e9aa7ce97fef70b973c604f892 (diff)
downloadbitcoin-10eb3a9faa977371facacee937b2e6dc26f008e0.tar.xz
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/core_io.h')
-rw-r--r--src/core_io.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core_io.h b/src/core_io.h
index 997f3bfd5b..a8c62da3f3 100644
--- a/src/core_io.h
+++ b/src/core_io.h
@@ -6,6 +6,7 @@
#define BITCOIN_CORE_IO_H
#include <consensus/amount.h>
+#include <util/result.h>
#include <string>
#include <vector>
@@ -46,7 +47,7 @@ bool DecodeHexBlockHeader(CBlockHeader&, const std::string& hex_header);
*/
bool ParseHashStr(const std::string& strHex, uint256& result);
std::vector<unsigned char> ParseHexUV(const UniValue& v, const std::string& strName);
-int ParseSighashString(const UniValue& sighash);
+[[nodiscard]] util::Result<int> SighashFromStr(const std::string& sighash);
// core_write.cpp
UniValue ValueFromAmount(const CAmount amount);