mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Don't support spending of pending BTC utxos in the BSQ wallet.
This commit is contained in:
parent
92fdca2abd
commit
49a0076139
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user