Used by getblockstats to get feerates at different percentiles by weight
Declared in <rpc/blockchain.h>
void
CalculatePercentilesByWeight(
CAmount result[],
std::vector<std::pair<CAmount, int64_t>>& scores,
int64_t total_weight);
| Name | Description |
|---|---|
| result | Output array filled with the fee rate at each percentile. |
| scores | The (fee, weight) pairs to compute percentiles from. |
| total_weight | The total weight across all scores. |