|
| double | GetDifficulty (const CBlockIndex &blockindex) |
| | Get the difficulty of the net wrt to the given block index.
|
| |
| static int | ComputeNextBlockAndDepth (const CBlockIndex &tip, const CBlockIndex &blockindex, const CBlockIndex *&next) |
| |
| static const CBlockIndex * | ParseHashOrHeight (const UniValue ¶m, ChainstateManager &chainman) |
| |
| UniValue | blockheaderToJSON (const CBlockIndex &tip, const CBlockIndex &blockindex, const uint256 pow_limit) |
| | Block header to JSON.
|
| |
| UniValue | coinbaseTxToJSON (const CTransaction &coinbase_tx) |
| | Serialize coinbase transaction metadata.
|
| |
| UniValue | blockToJSON (BlockManager &blockman, const CBlock &block, const CBlockIndex &tip, const CBlockIndex &blockindex, TxVerbosity verbosity, const uint256 pow_limit) |
| | Block description to JSON.
|
| |
| static RPCHelpMan | getblockcount () |
| |
| static RPCHelpMan | getbestblockhash () |
| |
| static RPCHelpMan | waitfornewblock () |
| |
| static RPCHelpMan | waitforblock () |
| |
| static RPCHelpMan | waitforblockheight () |
| |
| static RPCHelpMan | syncwithvalidationinterfacequeue () |
| |
| static RPCHelpMan | getdifficulty () |
| |
| static RPCHelpMan | getblockfrompeer () |
| |
| static RPCHelpMan | getblockhash () |
| |
| static RPCHelpMan | getblockheader () |
| |
| void | CheckBlockDataAvailability (BlockManager &blockman, const CBlockIndex &blockindex, bool check_for_undo) |
| |
| static CBlock | GetBlockChecked (BlockManager &blockman, const CBlockIndex &blockindex) |
| |
| static std::vector< std::byte > | GetRawBlockChecked (BlockManager &blockman, const CBlockIndex &blockindex) |
| |
| static CBlockUndo | GetUndoChecked (BlockManager &blockman, const CBlockIndex &blockindex) |
| |
| static RPCHelpMan | getblock () |
| |
| std::optional< int > | GetPruneHeight (const BlockManager &blockman, const CChain &chain) |
| | Return height of highest block that has been pruned, or std::nullopt if no blocks have been pruned.
|
| |
| static RPCHelpMan | pruneblockchain () |
| |
| CoinStatsHashType | ParseHashType (std::string_view hash_type_input) |
| |
| static std::optional< kernel::CCoinsStats > | GetUTXOStats (CCoinsView *view, node::BlockManager &blockman, kernel::CoinStatsHashType hash_type, const std::function< void()> &interruption_point={}, const CBlockIndex *pindex=nullptr, bool index_requested=true) |
| | Calculate statistics about the unspent transaction output set.
|
| |
| static RPCHelpMan | gettxoutsetinfo () |
| |
| static RPCHelpMan | gettxout () |
| |
| static RPCHelpMan | verifychain () |
| |
| static void | SoftForkDescPushBack (const CBlockIndex *blockindex, UniValue &softforks, const ChainstateManager &chainman, Consensus::BuriedDeployment dep) |
| |
| static void | SoftForkDescPushBack (const CBlockIndex *blockindex, UniValue &softforks, const ChainstateManager &chainman, Consensus::DeploymentPos id) |
| |
| RPCHelpMan | getblockchaininfo () |
| |
| RPCHelpMan | getdeploymentinfo () |
| |
| static RPCHelpMan | getchaintips () |
| |
| static RPCHelpMan | preciousblock () |
| |
| void | InvalidateBlock (ChainstateManager &chainman, const uint256 block_hash) |
| |
| static RPCHelpMan | invalidateblock () |
| |
| void | ReconsiderBlock (ChainstateManager &chainman, uint256 block_hash) |
| |
| static RPCHelpMan | reconsiderblock () |
| |
| static RPCHelpMan | getchaintxstats () |
| |
| template<typename T > |
| static T | CalculateTruncatedMedian (std::vector< T > &scores) |
| |
| void | CalculatePercentilesByWeight (CAmount result[NUM_GETBLOCKSTATS_PERCENTILES], std::vector< std::pair< CAmount, int64_t > > &scores, int64_t total_weight) |
| | Used by getblockstats to get feerates at different percentiles by weight
|
| |
| template<typename T > |
| static bool | SetHasKeys (const std::set< T > &set) |
| |
| template<typename T , typename Tk , typename... Args> |
| static bool | SetHasKeys (const std::set< T > &set, const Tk &key, const Args &... args) |
| |
| static RPCHelpMan | getblockstats () |
| |
| static RPCHelpMan | scantxoutset () |
| |
| static bool | CheckBlockFilterMatches (BlockManager &blockman, const CBlockIndex &blockindex, const GCSFilter::ElementSet &needles) |
| |
| static RPCHelpMan | scanblocks () |
| |
| static RPCHelpMan | getdescriptoractivity () |
| |
| static RPCHelpMan | getblockfilter () |
| |
| static RPCHelpMan | dumptxoutset () |
| | Serialize the UTXO set to a file for loading elsewhere.
|
| |
| std::tuple< std::unique_ptr< CCoinsViewCursor >, CCoinsStats, const CBlockIndex * > | PrepareUTXOSnapshot (Chainstate &chainstate, const std::function< void()> &interruption_point) |
| |
| UniValue | CreateUTXOSnapshot (node::NodeContext &node, Chainstate &chainstate, AutoFile &&afile, const fs::path &path, const fs::path &tmppath) |
| | Test-only helper to create UTXO snapshots given a chainstate and a file handle.
|
| |
| static RPCHelpMan | loadtxoutset () |
| |
| static RPCHelpMan | getchainstates () |
| |
| void | RegisterBlockchainRPCCommands (CRPCTable &t) |
| |