aboutsummaryrefslogtreecommitdiff
path: root/src/primitives
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2023-10-23 22:31:24 +0200
committerTheCharlatan <seb.kung@gmail.com>2024-05-16 17:16:08 +0200
commit23cc8ddff472d259605d7790ba98a1900e77efab (patch)
treeaf2214b11e32b1a2e8b9ca60a9053958cab9a38f /src/primitives
parent6861f954f8ff42c87ad638037adae86a5bd89600 (diff)
util: move HexStr and HexDigit from util to crypto
Move HexStr and HexDigit functions from util to crypto. The crypto library does not actually use these functions, but the consensus library does. The consensus and util libraries not allowed to depend on each other, but are allowed to depend on the cryto library, so the crypto library is a reasonable put these. The consensus library uses HexStr and HexDigit in script.cpp, transaction.cpp, and uint256.cpp. The util library does not use HexStr but does use HexDigit in strencodings.cpp to parse integers.
Diffstat (limited to 'src/primitives')
-rw-r--r--src/primitives/transaction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/primitives/transaction.cpp b/src/primitives/transaction.cpp
index b4a860dd9e..6edc00df24 100644
--- a/src/primitives/transaction.cpp
+++ b/src/primitives/transaction.cpp
@@ -6,12 +6,12 @@
#include <primitives/transaction.h>
#include <consensus/amount.h>
+#include <crypto/hex_base.h>
#include <hash.h>
#include <script/script.h>
#include <serialize.h>
#include <tinyformat.h>
#include <uint256.h>
-#include <util/strencodings.h>
#include <util/transaction_identifier.h>
#include <algorithm>