mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-08-09 11:22:31 +02:00
deduct unconfirmed transactions with negative values from balance
This commit is contained in:
@@ -37,9 +37,11 @@ public class WalletTransactionsEntry extends Entry {
|
||||
|
||||
for(Entry entry : getChildren()) {
|
||||
TransactionEntry transactionEntry = (TransactionEntry)entry;
|
||||
if(transactionEntry.getConfirmations() != 0) {
|
||||
if(transactionEntry.getConfirmations() != 0 || transactionEntry.getValue() < 0) {
|
||||
balance += entry.getValue();
|
||||
} else {
|
||||
}
|
||||
|
||||
if(transactionEntry.getConfirmations() == 0) {
|
||||
mempoolBalance += entry.getValue();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user