![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
#include <consensus/amount.h>#include <core_io.h>#include <streams.h>#include <sync.h>#include <util/fs.h>#include <validation.h>#include <any>#include <cstdint>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | node |
Functions | |
| double | GetDifficulty (const CBlockIndex &blockindex) |
| Get the difficulty of the net wrt to the given block index. More... | |
| UniValue | blockToJSON (node::BlockManager &blockman, const CBlock &block, const CBlockIndex &tip, const CBlockIndex &blockindex, TxVerbosity verbosity, const uint256 pow_limit) LOCKS_EXCLUDED(cs_main) |
| Block description to JSON. More... | |
| UniValue | blockheaderToJSON (const CBlockIndex &tip, const CBlockIndex &blockindex, const uint256 pow_limit) LOCKS_EXCLUDED(cs_main) |
| Block header to JSON. More... | |
| 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 More... | |
| 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. More... | |
Variables | |
| static constexpr int | NUM_GETBLOCKSTATS_PERCENTILES = 5 |
| UniValue blockheaderToJSON | ( | const CBlockIndex & | tip, |
| const CBlockIndex & | blockindex, | ||
| const uint256 | pow_limit | ||
| ) |
Block header to JSON.
Definition at line 154 of file blockchain.cpp.
| UniValue blockToJSON | ( | node::BlockManager & | blockman, |
| const CBlock & | block, | ||
| const CBlockIndex & | tip, | ||
| const CBlockIndex & | blockindex, | ||
| TxVerbosity | verbosity, | ||
| const uint256 | pow_limit | ||
| ) |
Block description to JSON.
Definition at line 184 of file blockchain.cpp.
| 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
Definition at line 1869 of file blockchain.cpp.
| 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.
Definition at line 3300 of file blockchain.cpp.
| double GetDifficulty | ( | const CBlockIndex & | blockindex | ) |
Get the difficulty of the net wrt to the given block index.
Definition at line 96 of file blockchain.cpp.
|
staticconstexpr |
Definition at line 28 of file blockchain.h.