Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
server_util.cpp File Reference
#include <rpc/server_util.h>
#include <chain.h>
#include <common/args.h>
#include <net_processing.h>
#include <node/context.h>
#include <node/miner.h>
#include <policy/fees/block_policy_estimator.h>
#include <pow.h>
#include <rpc/protocol.h>
#include <rpc/request.h>
#include <txmempool.h>
#include <util/any.h>
#include <validation.h>
#include <any>
Include dependency graph for server_util.cpp:

Go to the source code of this file.

Functions

NodeContextEnsureAnyNodeContext (const std::any &context)
CTxMemPoolEnsureMemPool (const NodeContext &node)
CTxMemPoolEnsureAnyMemPool (const std::any &context)
BanManEnsureBanman (const NodeContext &node)
BanManEnsureAnyBanman (const std::any &context)
ArgsManagerEnsureArgsman (const NodeContext &node)
ArgsManagerEnsureAnyArgsman (const std::any &context)
ChainstateManagerEnsureChainman (const NodeContext &node)
ChainstateManagerEnsureAnyChainman (const std::any &context)
CBlockPolicyEstimatorEnsureFeeEstimator (const NodeContext &node)
CBlockPolicyEstimatorEnsureAnyFeeEstimator (const std::any &context)
CConnmanEnsureConnman (const NodeContext &node)
interfaces::MiningEnsureMining (const NodeContext &node)
PeerManagerEnsurePeerman (const NodeContext &node)
AddrManEnsureAddrman (const NodeContext &node)
AddrManEnsureAnyAddrman (const std::any &context)
void NextEmptyBlockIndex (CBlockIndex &tip, const Consensus::Params &consensusParams, CBlockIndex &next_index)
 Return an empty block index on top of the tip, with height, time and nBits set.
int64_t UpdateTime (CBlockHeader *pblock, const Consensus::Params &consensusParams, const CBlockIndex *pindexPrev)

Function Documentation

◆ EnsureAddrman()

AddrMan & EnsureAddrman ( const NodeContext & node)

Definition at line 124 of file server_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureAnyAddrman()

AddrMan & EnsureAnyAddrman ( const std::any & context)

Definition at line 132 of file server_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureAnyArgsman()

ArgsManager & EnsureAnyArgsman ( const std::any & context)

Definition at line 69 of file server_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureAnyBanman()

BanMan & EnsureAnyBanman ( const std::any & context)

Definition at line 56 of file server_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureAnyChainman()

ChainstateManager & EnsureAnyChainman ( const std::any & context)

Definition at line 82 of file server_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureAnyFeeEstimator()

CBlockPolicyEstimator & EnsureAnyFeeEstimator ( const std::any & context)

Definition at line 95 of file server_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureAnyMemPool()

CTxMemPool & EnsureAnyMemPool ( const std::any & context)

Definition at line 42 of file server_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureAnyNodeContext()

NodeContext & EnsureAnyNodeContext ( const std::any & context)

Definition at line 25 of file server_util.cpp.

Here is the call graph for this function:

◆ EnsureArgsman()

ArgsManager & EnsureArgsman ( const NodeContext & node)

Definition at line 61 of file server_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureBanman()

BanMan & EnsureBanman ( const NodeContext & node)

Definition at line 48 of file server_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureChainman()

ChainstateManager & EnsureChainman ( const NodeContext & node)

Definition at line 74 of file server_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureConnman()

CConnman & EnsureConnman ( const NodeContext & node)

Definition at line 100 of file server_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureFeeEstimator()

CBlockPolicyEstimator & EnsureFeeEstimator ( const NodeContext & node)

Definition at line 87 of file server_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureMemPool()

CTxMemPool & EnsureMemPool ( const NodeContext & node)

Definition at line 34 of file server_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureMining()

interfaces::Mining & EnsureMining ( const NodeContext & node)

Definition at line 108 of file server_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsurePeerman()

PeerManager & EnsurePeerman ( const NodeContext & node)

Definition at line 116 of file server_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ NextEmptyBlockIndex()

void NextEmptyBlockIndex ( CBlockIndex & tip,
const Consensus::Params & consensusParams,
CBlockIndex & next_index )

Return an empty block index on top of the tip, with height, time and nBits set.

Definition at line 137 of file server_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateTime()

int64_t node::UpdateTime ( CBlockHeader * pblock,
const Consensus::Params & consensusParams,
const CBlockIndex * pindexPrev )

Definition at line 49 of file miner.cpp.

Here is the caller graph for this function: