diff --git a/ci/test/06_script_b.sh b/ci/test/06_script_b.sh index b68bfe5cf19..29f30cfe9eb 100755 --- a/ci/test/06_script_b.sh +++ b/ci/test/06_script_b.sh @@ -40,6 +40,7 @@ if [ "${RUN_TIDY}" = "true" ]; then export P_CI_DIR="${BASE_BUILD_DIR}/bitcoin-$HOST/" CI_EXEC "python3 ${DIR_IWYU}/include-what-you-use/iwyu_tool.py"\ " src/compat"\ + " src/dbwrapper.cpp"\ " src/init"\ " src/kernel/mempool_persist.cpp"\ " src/node/chainstate.cpp"\ diff --git a/src/dbwrapper.cpp b/src/dbwrapper.cpp index d4a8e4f35ab..4dbc8399416 100644 --- a/src/dbwrapper.cpp +++ b/src/dbwrapper.cpp @@ -4,15 +4,28 @@ #include -#include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include #include #include #include -#include -#include +#include +#include +#include +#include +#include class CBitcoinLevelDBLogger : public leveldb::Logger { public: diff --git a/src/dbwrapper.h b/src/dbwrapper.h index cef8426d610..665eaa0e986 100644 --- a/src/dbwrapper.h +++ b/src/dbwrapper.h @@ -7,14 +7,26 @@ #include #include +#include #include #include #include -#include -#include +#include +#include +#include #include +#include +#include +#include +#include #include +#include +#include +#include +namespace leveldb { +class Env; +} static const size_t DBWRAPPER_PREALLOC_KEY_SIZE = 64; static const size_t DBWRAPPER_PREALLOC_VALUE_SIZE = 1024;