Replacing weight with vsize in transactions api to match esplora.

This commit is contained in:
softsimon 2021-01-28 18:24:02 +07:00
parent 47dd1f2d0b
commit da533097d9
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
2 changed files with 0 additions and 2 deletions

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),
};

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;
}