aboutsummaryrefslogtreecommitdiff
path: root/src/index
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2023-03-06 22:01:13 +0100
committerTheCharlatan <seb.kung@gmail.com>2023-03-13 17:09:54 +0100
commitaaced5633b81b2f08b993106a527e2a0e1d663c1 (patch)
tree092234ac7a2953d303bfa7060f07f544fa4b6e58 /src/index
parente7333b420e35054d9302f9c58fd47b6152cbd35f (diff)
downloadbitcoin-aaced5633b81b2f08b993106a527e2a0e1d663c1.tar.xz
refactor: Move error() from util/system.h to logging.h
error is a low-level function with a sole dependency on LogPrintf, which is defined in logging.h The background of this commit is an ongoing effort to decouple the libbitcoinkernel library from the ArgsManager defined in system.h. Moving the function out of system.h allows including it from a separate source file without including the ArgsManager definitions from system.h.
Diffstat (limited to 'src/index')
-rw-r--r--src/index/base.cpp1
-rw-r--r--src/index/coinstatsindex.cpp1
-rw-r--r--src/index/txindex.cpp1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/index/base.cpp b/src/index/base.cpp
index 7c570d4534..8a311296c2 100644
--- a/src/index/base.cpp
+++ b/src/index/base.cpp
@@ -6,6 +6,7 @@
#include <index/base.h>
#include <interfaces/chain.h>
#include <kernel/chain.h>
+#include <logging.h>
#include <node/blockstorage.h>
#include <node/context.h>
#include <node/database_args.h>
diff --git a/src/index/coinstatsindex.cpp b/src/index/coinstatsindex.cpp
index 8cece7d78d..4d637e217a 100644
--- a/src/index/coinstatsindex.cpp
+++ b/src/index/coinstatsindex.cpp
@@ -7,6 +7,7 @@
#include <crypto/muhash.h>
#include <index/coinstatsindex.h>
#include <kernel/coinstats.h>
+#include <logging.h>
#include <node/blockstorage.h>
#include <serialize.h>
#include <txdb.h>
diff --git a/src/index/txindex.cpp b/src/index/txindex.cpp
index 25ccc3e636..9095e7afeb 100644
--- a/src/index/txindex.cpp
+++ b/src/index/txindex.cpp
@@ -5,6 +5,7 @@
#include <index/txindex.h>
#include <index/disktxpos.h>
+#include <logging.h>
#include <node/blockstorage.h>
#include <util/system.h>
#include <validation.h>