Replacing weight with vsize in transactions api to match esplora.
This commit is contained in:
1 parent
02c4ad2688
commit
c9ef7cf0f3
2 files changed
-2
No files matched your search
@@ -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),
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user