mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-12 09:33:23 +00:00
if allow unconfirmed, include mempool outputs in balance #2
This commit is contained in:
@@ -38,7 +38,7 @@ public class WalletTransactionsEntry extends Entry {
|
||||
|
||||
for(Entry entry : getChildren()) {
|
||||
TransactionEntry transactionEntry = (TransactionEntry)entry;
|
||||
if(transactionEntry.getConfirmations() != 0 || Config.get().isIncludeMempoolChange()) {
|
||||
if(transactionEntry.getConfirmations() != 0 || transactionEntry.getValue() < 0 || Config.get().isIncludeMempoolChange()) {
|
||||
balance += entry.getValue();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user