aboutsummaryrefslogtreecommitdiff
path: root/src/addrdb.cpp
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/addrdb.cpp
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/addrdb.cpp')
-rw-r--r--src/addrdb.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/addrdb.cpp b/src/addrdb.cpp
index 7be13c8f1e..9ae8244d1c 100644
--- a/src/addrdb.cpp
+++ b/src/addrdb.cpp
@@ -11,6 +11,7 @@
#include <cstdint>
#include <fs.h>
#include <hash.h>
+#include <logging.h>
#include <logging/timer.h>
#include <netbase.h>
#include <netgroup.h>