diff options
author | Carl Dong <contact@carldong.me> | 2021-04-14 10:16:34 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-04-14 10:54:27 -0400 |
commit | 1570c7ee98612366df031bebef9e0468fb57b8a2 (patch) | |
tree | 718ecb8d1335ff9730159d4f7de1aab8b02fb468 /src/rpc/blockchain.h | |
parent | 306b1cd3eeb2502904ed4698646d2c86d028aad2 (diff) |
rpc: Add renamed EnsureAny*() functions
- The original Ensure*(const std::any& context) functions are kept and
the parameter renamed to ctx so that the scripted-diff in the
subsequent commit will work as expected
- The renaming avoids overloading mistakes arising out of the untyped
std::any argument.
Diffstat (limited to 'src/rpc/blockchain.h')
-rw-r--r-- | src/rpc/blockchain.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rpc/blockchain.h b/src/rpc/blockchain.h index 17c7060761..3ac15c869d 100644 --- a/src/rpc/blockchain.h +++ b/src/rpc/blockchain.h @@ -57,12 +57,16 @@ 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); +NodeContext& EnsureAnyNodeContext(const std::any& context); CTxMemPool& EnsureMemPool(const NodeContext& node); CTxMemPool& EnsureMemPool(const std::any& context); +CTxMemPool& EnsureAnyMemPool(const std::any& context); ChainstateManager& EnsureChainman(const NodeContext& node); ChainstateManager& EnsureChainman(const std::any& context); +ChainstateManager& EnsureAnyChainman(const std::any& context); CBlockPolicyEstimator& EnsureFeeEstimator(const NodeContext& node); CBlockPolicyEstimator& EnsureFeeEstimator(const std::any& context); +CBlockPolicyEstimator& EnsureAnyFeeEstimator(const std::any& context); /** * Helper to create UTXO snapshots given a chainstate and a file handle. |