5 #ifndef BITCOIN_RPC_BLOCKCHAIN_H 6 #define BITCOIN_RPC_BLOCKCHAIN_H static constexpr int NUM_GETBLOCKSTATS_PERCENTILES
Definition: blockchain.h:21
UniValue MempoolInfoToJSON(const CTxMemPool &pool)
Definition: blockchain.cpp:1479
void RPCNotifyBlockChange(bool ibd, const CBlockIndex *)
Definition: blockchain.cpp:203
Definition: univalue.h:19
double GetDifficulty(const CBlockIndex *blockindex)
Definition: blockchain.cpp:60
int64_t CAmount
Definition: amount.h:12
UniValue blockheaderToJSON(const CBlockIndex *tip, const CBlockIndex *blockindex) LOCKS_EXCLUDED(cs_main)
Definition: blockchain.cpp:92
UniValue MempoolToJSON(const CTxMemPool &pool, bool verbose=false)
Definition: blockchain.cpp:464
void CalculatePercentilesByWeight(CAmount result[NUM_GETBLOCKSTATS_PERCENTILES], std::vector< std::pair< CAmount, int64_t >> &scores, int64_t total_weight)
Definition: blockchain.cpp:1724
#define LOCKS_EXCLUDED(...)
Definition: thread_annotations.h:21
RecursiveMutex cs_main
Definition: validation.cpp:100
Definition: txmempool.h:443
UniValue blockToJSON(const CBlock &block, const CBlockIndex *tip, const CBlockIndex *blockindex, bool txDetails=false) LOCKS_EXCLUDED(cs_main)
Definition: blockchain.cpp:121
signed long long int64_t
Definition: stdint.h:18