online calculation of stack-of-n-blocks fee statistics

This commit is contained in:
Mononaut
2023-05-10 12:59:05 -06:00
parent dd35ef1b41
commit 92c88cf5b6
3 changed files with 166 additions and 10 deletions

View File

@@ -237,6 +237,11 @@ export interface EffectiveFeeStats {
feeRange: number[]; // 2nd, 10th, 25th, 50th, 75th, 90th, 98th percentiles
}
export interface WorkingEffectiveFeeStats extends EffectiveFeeStats {
minFee: number;
maxFee: number;
}
export interface CpfpSummary {
transactions: TransactionExtended[];
clusters: { root: string, height: number, txs: Ancestor[], effectiveFeePerVsize: number }[];