New projected block transaction selection algo

This commit is contained in:
Mononaut
2022-10-10 22:13:04 +00:00
parent a654a14707
commit cd0e6bae64
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;