mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
deduct unconfirmed transactions with negative values from balance
This commit is contained in:
parent
1c2e635650
commit
a440c22455
1 changed files with 4 additions and 2 deletions
|
@ -37,9 +37,11 @@ public class WalletTransactionsEntry extends Entry {
|
||||||
|
|
||||||
for(Entry entry : getChildren()) {
|
for(Entry entry : getChildren()) {
|
||||||
TransactionEntry transactionEntry = (TransactionEntry)entry;
|
TransactionEntry transactionEntry = (TransactionEntry)entry;
|
||||||
if(transactionEntry.getConfirmations() != 0) {
|
if(transactionEntry.getConfirmations() != 0 || transactionEntry.getValue() < 0) {
|
||||||
balance += entry.getValue();
|
balance += entry.getValue();
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
if(transactionEntry.getConfirmations() == 0) {
|
||||||
mempoolBalance += entry.getValue();
|
mempoolBalance += entry.getValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue