mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-03-26 01:32:25 +01:00
if allow unconfirmed, include mempool outputs in balance
This commit is contained in:
parent
164742387f
commit
f2f15208bf
@ -7,6 +7,7 @@ import com.sparrowwallet.drongo.wallet.Wallet;
|
||||
import com.sparrowwallet.drongo.wallet.WalletNode;
|
||||
import com.sparrowwallet.sparrow.EventManager;
|
||||
import com.sparrowwallet.sparrow.event.NewWalletTransactionsEvent;
|
||||
import com.sparrowwallet.sparrow.io.Config;
|
||||
import javafx.beans.property.LongProperty;
|
||||
import javafx.beans.property.LongPropertyBase;
|
||||
import org.slf4j.Logger;
|
||||
@ -37,7 +38,7 @@ public class WalletTransactionsEntry extends Entry {
|
||||
|
||||
for(Entry entry : getChildren()) {
|
||||
TransactionEntry transactionEntry = (TransactionEntry)entry;
|
||||
if(transactionEntry.getConfirmations() != 0 || transactionEntry.getValue() < 0) {
|
||||
if(transactionEntry.getConfirmations() != 0 || Config.get().isIncludeMempoolChange()) {
|
||||
balance += entry.getValue();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user