Don't include fee in balance calculation (it looks like it could be double counting at the moment).

This commit is contained in:
CalDescent 2022-02-05 17:24:33 +00:00
parent 76df332b57
commit 9692539a3f

View File

@ -344,11 +344,6 @@ public abstract class Bitcoiny implements ForeignBlockchain {
List<SimpleTransaction> transactions = getWalletTransactions(key58).stream().sorted(oldestTimestampFirstComparator).collect(Collectors.toList());
for (SimpleTransaction transaction : transactions) {
balance += transaction.getTotalAmount();
if (transaction.getTotalAmount() < 0) {
// Outgoing transaction - so this wallet paid the fee
balance -= transaction.getFeeAmount();
}
}
return balance;
}