diff options
author | TheCharlatan <seb.kung@gmail.com> | 2023-07-21 14:37:03 +0200 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2023-07-25 17:40:07 +0200 |
commit | 6960c81cbfa6208d4098353e53b313e13a21cb49 (patch) | |
tree | ff176ff287825a64169c92cbb3d73d5eaa3929e7 /src/core_read.cpp | |
parent | 10eb3a9faa977371facacee937b2e6dc26f008e0 (diff) | |
download | bitcoin-6960c81cbfa6208d4098353e53b313e13a21cb49.tar.xz |
kernel: Remove Univalue from kernel library
It is not required by any of the kernel components.
A JSON library should not need to be part of a consensus library.
Diffstat (limited to 'src/core_read.cpp')
-rw-r--r-- | src/core_read.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/core_read.cpp b/src/core_read.cpp index c40f04a824..dfabf3a0c2 100644 --- a/src/core_read.cpp +++ b/src/core_read.cpp @@ -10,7 +10,6 @@ #include <script/sign.h> #include <serialize.h> #include <streams.h> -#include <univalue.h> #include <util/result.h> #include <util/strencodings.h> #include <version.h> @@ -243,16 +242,6 @@ bool ParseHashStr(const std::string& strHex, uint256& result) return true; } -std::vector<unsigned char> ParseHexUV(const UniValue& v, const std::string& strName) -{ - std::string strHex; - if (v.isStr()) - strHex = v.getValStr(); - if (!IsHex(strHex)) - throw std::runtime_error(strName + " must be hexadecimal string (not '" + strHex + "')"); - return ParseHex(strHex); -} - util::Result<int> SighashFromStr(const std::string& sighash) { static std::map<std::string, int> map_sighash_values = { |