Don't support spending of pending BTC utxos in the BSQ wallet.

This commit is contained in:
Manfred Karrer 2019-03-21 21:11:18 -05:00
parent 92fdca2abd
commit 49a0076139
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46

View File

@ -38,7 +38,7 @@ public class NonBsqCoinSelector extends BisqDefaultCoinSelector {
@Inject
public NonBsqCoinSelector(DaoStateService daoStateService) {
super(true);
super(false);
this.daoStateService = daoStateService;
}
@ -49,6 +49,8 @@ public class NonBsqCoinSelector extends BisqDefaultCoinSelector {
if (parentTransaction == null)
return false;
// It is important to not allow pending txs as otherwise unconfirmed BSQ txs would considered nonBSQ as
// below outputIsNotInBsqState would be true.
if (parentTransaction.getConfidence().getConfidenceType() != TransactionConfidence.ConfidenceType.BUILDING)
return false;