From b884ababc29ce963826d8a4327ed6a5e629ff175 Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Wed, 21 Apr 2021 16:39:40 +0200 Subject: rpc: move Ensure* helpers to server_util.h --- src/rpc/blockchain.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/rpc/blockchain.h') diff --git a/src/rpc/blockchain.h b/src/rpc/blockchain.h index 65f6b1429e..13295ffaed 100644 --- a/src/rpc/blockchain.h +++ b/src/rpc/blockchain.h @@ -18,7 +18,6 @@ extern RecursiveMutex cs_main; class CBlock; class CBlockIndex; -class CBlockPolicyEstimator; class CChainState; class CTxMemPool; class ChainstateManager; @@ -53,14 +52,6 @@ UniValue blockheaderToJSON(const CBlockIndex* tip, const CBlockIndex* blockindex /** Used by getblockstats to get feerates at different percentiles by weight */ void CalculatePercentilesByWeight(CAmount result[NUM_GETBLOCKSTATS_PERCENTILES], std::vector>& scores, int64_t total_weight); -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); -CBlockPolicyEstimator& EnsureFeeEstimator(const NodeContext& node); -CBlockPolicyEstimator& EnsureAnyFeeEstimator(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. -- cgit v1.2.3