diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -622,6 +622,7 @@ rpc/net.cpp rpc/rawtransaction.cpp rpc/server.cpp + rpc/server_util.cpp script/scriptcache.cpp script/sigcache.cpp shutdown.cpp diff --git a/src/rest.cpp b/src/rest.cpp --- a/src/rest.cpp +++ b/src/rest.cpp @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include diff --git a/src/rpc/avalanche.cpp b/src/rpc/avalanche.cpp --- a/src/rpc/avalanche.cpp +++ b/src/rpc/avalanche.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include diff --git a/src/rpc/blockchain.h b/src/rpc/blockchain.h --- a/src/rpc/blockchain.h +++ b/src/rpc/blockchain.h @@ -52,12 +52,6 @@ const CBlockIndex *blockindex) LOCKS_EXCLUDED(cs_main); -NodeContext &EnsureAnyNodeContext(const std::any &context); -CTxMemPool &EnsureMemPool(const NodeContext &node); -CTxMemPool &EnsureAnyMemPool(const std::any &context); -ChainstateManager &EnsureChainman(const NodeContext &node); -ChainstateManager &EnsureAnyChainman(const std::any &context); - /** * Helper to create UTXO snapshots given a chainstate and a file handle. * @return a UniValue map containing metadata about the snapshot. diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include