Use effective fee rate heuristics for block fee span

This commit is contained in:
Mononaut
2023-03-12 11:09:11 +09:00
committed by softsimon
parent d08a318a2c
commit 2baa10dcef
5 changed files with 124 additions and 14 deletions

View File

@@ -214,6 +214,16 @@ export interface MempoolStats {
tx_count: number;
}
export interface EffectiveFeeStats {
medianFee: number; // median effective fee rate
feeRange: number[]; // 2nd, 10th, 25th, 50th, 75th, 90th, 98th percentiles
}
export interface CpfpSummary {
transactions: TransactionExtended[];
clusters: { root: string, height: number, txs: Ancestor[], effectiveFeePerVsize: number }[];
}
export interface Statistic {
id?: number;
added: string;