mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-24 10:41:23 +00:00
Don't include fee in balance calculation (it looks like it could be double counting at the moment).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user