New projected block transaction selection algo

This commit is contained in:
Mononaut
2022-10-10 22:13:04 +00:00
parent e14fff45d6
commit 702ff2796a
3 changed files with 254 additions and 8 deletions

View File

@@ -70,12 +70,21 @@ export interface TransactionExtended extends IEsploraApi.Transaction {
deleteAfter?: number;
}
interface Ancestor {
export interface Ancestor {
txid: string;
weight: number;
fee: number;
}
export interface TransactionSet {
fee: number;
weight: number;
score: number;
children?: string[];
available?: boolean;
modified?: boolean;
}
interface BestDescendant {
txid: string;
weight: number;