mirror of
https://github.com/mempool/mempool.git
synced 2024-11-20 10:21:52 +01:00
Replacing weight with vsize in transactions api to match esplora.
This commit is contained in:
parent
47dd1f2d0b
commit
da533097d9
@ -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),
|
||||
};
|
||||
|
@ -31,7 +31,6 @@ export interface TransactionExtended extends IEsploraApi.Transaction {
|
||||
export interface TransactionStripped {
|
||||
txid: string;
|
||||
fee: number;
|
||||
weight?: number // deprecated
|
||||
vsize: number;
|
||||
value: number;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user