aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/blockchain.h
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2021-04-12 18:25:13 -0400
committerCarl Dong <contact@carldong.me>2021-04-12 18:25:13 -0400
commit306b1cd3eeb2502904ed4698646d2c86d028aad2 (patch)
treeffb56a87c99acefbeb59d19d1007d6a27f03e18b /src/rpc/blockchain.h
parentd7824acdb9b18fe8f151771a83ccae1681f16c66 (diff)
downloadbitcoin-306b1cd3eeb2502904ed4698646d2c86d028aad2.tar.xz
rpc: Add alt Ensure* functions acepting NodeContext
Diffstat (limited to 'src/rpc/blockchain.h')
-rw-r--r--src/rpc/blockchain.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rpc/blockchain.h b/src/rpc/blockchain.h
index cd04c9a10f..17c7060761 100644
--- a/src/rpc/blockchain.h
+++ b/src/rpc/blockchain.h
@@ -57,8 +57,11 @@ void ScriptPubKeyToUniv(const CScript& scriptPubKey, UniValue& out, bool fInclud
void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry, bool include_hex = true, int serialize_flags = 0, const CTxUndo* txundo = nullptr);
NodeContext& EnsureNodeContext(const std::any& context);
+CTxMemPool& EnsureMemPool(const NodeContext& node);
CTxMemPool& EnsureMemPool(const std::any& context);
+ChainstateManager& EnsureChainman(const NodeContext& node);
ChainstateManager& EnsureChainman(const std::any& context);
+CBlockPolicyEstimator& EnsureFeeEstimator(const NodeContext& node);
CBlockPolicyEstimator& EnsureFeeEstimator(const std::any& context);
/**