mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 21:32:55 +01:00
Merge pull request #5349 from mempool/simon/add-fee-to-cpfp
Add fee to Cpfp API
This commit is contained in:
commit
df977926e2
@ -160,6 +160,7 @@ class BitcoinRoutes {
|
|||||||
descendants: tx.descendants || null,
|
descendants: tx.descendants || null,
|
||||||
effectiveFeePerVsize: tx.effectiveFeePerVsize || null,
|
effectiveFeePerVsize: tx.effectiveFeePerVsize || null,
|
||||||
sigops: tx.sigops,
|
sigops: tx.sigops,
|
||||||
|
fee: tx.fee,
|
||||||
adjustedVsize: tx.adjustedVsize,
|
adjustedVsize: tx.adjustedVsize,
|
||||||
acceleration: tx.acceleration,
|
acceleration: tx.acceleration,
|
||||||
acceleratedBy: tx.acceleratedBy || undefined,
|
acceleratedBy: tx.acceleratedBy || undefined,
|
||||||
|
@ -175,6 +175,7 @@ export function calculateMempoolTxCpfp(tx: MempoolTransactionExtended, mempool:
|
|||||||
descendants: tx.descendants || [],
|
descendants: tx.descendants || [],
|
||||||
effectiveFeePerVsize: tx.effectiveFeePerVsize || tx.adjustedFeePerVsize || tx.feePerVsize,
|
effectiveFeePerVsize: tx.effectiveFeePerVsize || tx.adjustedFeePerVsize || tx.feePerVsize,
|
||||||
sigops: tx.sigops,
|
sigops: tx.sigops,
|
||||||
|
fee: tx.fee,
|
||||||
adjustedVsize: tx.adjustedVsize,
|
adjustedVsize: tx.adjustedVsize,
|
||||||
acceleration: tx.acceleration
|
acceleration: tx.acceleration
|
||||||
};
|
};
|
||||||
@ -213,6 +214,7 @@ export function calculateMempoolTxCpfp(tx: MempoolTransactionExtended, mempool:
|
|||||||
descendants: tx.descendants || [],
|
descendants: tx.descendants || [],
|
||||||
effectiveFeePerVsize: tx.effectiveFeePerVsize || tx.adjustedFeePerVsize || tx.feePerVsize,
|
effectiveFeePerVsize: tx.effectiveFeePerVsize || tx.adjustedFeePerVsize || tx.feePerVsize,
|
||||||
sigops: tx.sigops,
|
sigops: tx.sigops,
|
||||||
|
fee: tx.fee,
|
||||||
adjustedVsize: tx.adjustedVsize,
|
adjustedVsize: tx.adjustedVsize,
|
||||||
acceleration: tx.acceleration
|
acceleration: tx.acceleration
|
||||||
};
|
};
|
||||||
|
@ -223,6 +223,7 @@ export interface CpfpInfo {
|
|||||||
sigops?: number;
|
sigops?: number;
|
||||||
adjustedVsize?: number,
|
adjustedVsize?: number,
|
||||||
acceleration?: boolean,
|
acceleration?: boolean,
|
||||||
|
fee?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TransactionStripped {
|
export interface TransactionStripped {
|
||||||
|
Loading…
Reference in New Issue
Block a user