add fee rate support

This commit is contained in:
Craig Raw 2020-09-25 15:36:40 +02:00
parent 79eb8b002d
commit b2297a8d02

View file

@ -82,6 +82,10 @@ public class WalletTransaction {
return fee;
}
public double getFeeRate() {
return (double)fee / transaction.getVirtualSize();
}
public long getTotal() {
return selectedUtxos.keySet().stream().mapToLong(BlockTransactionHashIndex::getValue).sum();
}