mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-27 02:26:44 +00:00
add fee rate support
This commit is contained in:
parent
79eb8b002d
commit
b2297a8d02
1 changed files with 4 additions and 0 deletions
|
@ -82,6 +82,10 @@ public class WalletTransaction {
|
||||||
return fee;
|
return fee;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public double getFeeRate() {
|
||||||
|
return (double)fee / transaction.getVirtualSize();
|
||||||
|
}
|
||||||
|
|
||||||
public long getTotal() {
|
public long getTotal() {
|
||||||
return selectedUtxos.keySet().stream().mapToLong(BlockTransactionHashIndex::getValue).sum();
|
return selectedUtxos.keySet().stream().mapToLong(BlockTransactionHashIndex::getValue).sum();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue