mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-03-26 01:32:25 +01:00
deduct unconfirmed transactions with negative values from balance
This commit is contained in:
parent
1c2e635650
commit
a440c22455
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user