Replacing weight with vsize in transactions api to match esplora.

This commit is contained in:
softsimon committed 2021-01-28 18:24:02 +07:00
1 parent 47dd1f2d0b
commit da533097d9
2 files changed
-2

No files matched your search

-1
View File
@@ -52,7 +52,6 @@ export class Common {
return {
txid: tx.txid,
fee: tx.fee,
weight: tx.weight, // Deprecated
vsize: tx.weight / 4,
value: tx.vout.reduce((acc, vout) => acc + (vout.value ? vout.value : 0), 0),
};
-1
View File
@@ -31,7 +31,6 @@ export interface TransactionExtended extends IEsploraApi.Transaction {
export interface TransactionStripped {
txid: string;
fee: number;
weight?: number // deprecated
vsize: number;
value: number;
}