|
|
|
@ -50,11 +50,6 @@ UniValue blockheaderToJSON(const CBlockIndex* tip, const CBlockIndex* blockindex
|
|
|
|
|
/** Used by getblockstats to get feerates at different percentiles by weight */
|
|
|
|
|
void CalculatePercentilesByWeight(CAmount result[NUM_GETBLOCKSTATS_PERCENTILES], std::vector<std::pair<CAmount, int64_t>>& scores, int64_t total_weight);
|
|
|
|
|
|
|
|
|
|
//! Pointer to node state that needs to be declared as a global to be accessible
|
|
|
|
|
//! RPC methods. Due to limitations of the RPC framework, there's currently no
|
|
|
|
|
//! direct way to pass in state to RPC methods without globals.
|
|
|
|
|
extern NodeContext* g_rpc_node;
|
|
|
|
|
|
|
|
|
|
NodeContext& EnsureNodeContext(const util::Ref& context);
|
|
|
|
|
CTxMemPool& EnsureMemPool(const util::Ref& context);
|
|
|
|
|
|
|
|
|
|