#include <amount.h>
#include <sync.h>
#include <stdint.h>
#include <vector>
Go to the source code of this file.
◆ blockheaderToJSON()
◆ blockToJSON()
Block description to JSON
◆ CalculatePercentilesByWeight()
| 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
◆ GetDifficulty()
Get the difficulty of the net wrt to the given block index.
- Returns
- A floating point number that is a multiple of the main net minimum difficulty (4295032833 hashes).
◆ MempoolInfoToJSON()
Mempool information to JSON
◆ MempoolToJSON()
◆ RPCNotifyBlockChange()
| void RPCNotifyBlockChange |
( |
bool |
ibd, |
|
|
const CBlockIndex * |
|
|
) |
| |
Callback for when block tip changed.
◆ cs_main
Mutex to guard access to validation specific variables, such as reading or changing the chainstate.
This may also need to be locked when updating the transaction pool, e.g. on AcceptToMemoryPool. See CTxMemPool::cs comment for details.
The transaction pool has a separate lock to allow reading from it and the chainstate at the same time.
◆ NUM_GETBLOCKSTATS_PERCENTILES
| constexpr int NUM_GETBLOCKSTATS_PERCENTILES = 5 |
|
static |