forked from Qortal/qortal
Don't include fee in balance calculation (it looks like it could be double counting at the moment).
This commit is contained in:
parent
76df332b57
commit
9692539a3f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user