mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Dont include dead transactions in check for unconfirmed txs chain
This commit is contained in:
parent
58f5066e0a
commit
fe3828e21f
@ -62,12 +62,9 @@ import org.bitcoinj.utils.Threading;
|
||||
import org.bitcoinj.wallet.DecryptingKeyBag;
|
||||
import org.bitcoinj.wallet.DeterministicSeed;
|
||||
import org.bitcoinj.wallet.KeyBag;
|
||||
import org.bitcoinj.wallet.KeyChain;
|
||||
import org.bitcoinj.wallet.RedeemData;
|
||||
import org.bitcoinj.wallet.SendRequest;
|
||||
import org.bitcoinj.wallet.Wallet;
|
||||
import org.bitcoinj.wallet.listeners.KeyChainEventListener;
|
||||
import org.bitcoinj.wallet.listeners.ScriptsChangeEventListener;
|
||||
import org.bitcoinj.wallet.listeners.WalletChangeEventListener;
|
||||
import org.bitcoinj.wallet.listeners.WalletCoinsReceivedEventListener;
|
||||
import org.bitcoinj.wallet.listeners.WalletCoinsSentEventListener;
|
||||
@ -635,7 +632,9 @@ public abstract class WalletService {
|
||||
* @return true when queue is full
|
||||
*/
|
||||
public boolean isUnconfirmedTransactionsLimitHit() {
|
||||
return 20 < getTransactions(true).stream().filter(transaction -> transaction.isPending()).count();
|
||||
return 20 < getTransactions(false).stream()
|
||||
.filter(Transaction::isPending)
|
||||
.count();
|
||||
}
|
||||
|
||||
public Set<Transaction> getTransactions(boolean includeDead) {
|
||||
|
Loading…
Reference in New Issue
Block a user