Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
server_util.cpp File Reference
#include <rpc/server_util.h>
#include <chain.h>
#include <node/context.h>
#include <node/miner.h>
#include <pow.h>
#include <primitives/block.h>
#include <rpc/protocol.h>
#include <rpc/request.h>
#include <uint256.h>
#include <util/any.h>
#include <any>
#include <memory>
#include <string>
Include dependency graph for server_util.cpp:

Go to the source code of this file.

Namespaces

namespace  Consensus
 Transaction validation functions.

Functions

NodeContext & EnsureAnyNodeContext (const std::any &context)
CTxMemPool & EnsureMemPool (const NodeContext &node)
CTxMemPool & EnsureAnyMemPool (const std::any &context)
BanMan & EnsureBanman (const NodeContext &node)
BanMan & EnsureAnyBanman (const std::any &context)
ArgsManager & EnsureArgsman (const NodeContext &node)
ArgsManager & EnsureAnyArgsman (const std::any &context)
ChainstateManager & EnsureChainman (const NodeContext &node)
ChainstateManager & EnsureAnyChainman (const std::any &context)
FeeRateEstimatorManager & EnsureFeeEstimatorMan (const NodeContext &node)
FeeRateEstimatorManager & EnsureAnyFeeEstimatorMan (const std::any &context)
CConnman & EnsureConnman (const NodeContext &node)
interfaces::Mining & EnsureMining (const NodeContext &node)
PeerManager & EnsurePeerman (const NodeContext &node)
AddrMan & EnsureAddrman (const NodeContext &node)
AddrMan & EnsureAnyAddrman (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 127 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 135 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 72 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 59 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 85 of file server_util.cpp.

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

◆ EnsureAnyFeeEstimatorMan()

FeeRateEstimatorManager & EnsureAnyFeeEstimatorMan ( const std::any & context)

Definition at line 98 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 45 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 28 of file server_util.cpp.

Here is the call graph for this function:

◆ EnsureArgsman()

ArgsManager & EnsureArgsman ( const NodeContext & node)

Definition at line 64 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 51 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 77 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 103 of file server_util.cpp.

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

◆ EnsureFeeEstimatorMan()

FeeRateEstimatorManager & EnsureFeeEstimatorMan ( const NodeContext & node)

Definition at line 90 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 37 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 111 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 119 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 140 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 77 of file miner.cpp.