diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/UtxosController.java b/src/main/java/com/sparrowwallet/sparrow/wallet/UtxosController.java index 532c822b..29b514b6 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/UtxosController.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/UtxosController.java @@ -278,6 +278,11 @@ public void sendSelected(ActionEvent event) { } public void mixSelected(ActionEvent event) { + if(!getWalletForm().getWallet().isMasterWallet() && getWalletForm().getWallet().getStandardAccountType() == StandardAccount.ACCOUNT_0) { + showErrorDialog("Invalid Whirlpool wallet", "Create a new wallet with Account #0 as the first account."); + return; + } + List selectedEntries = getSelectedUtxos(); WhirlpoolDialog whirlpoolDialog = new WhirlpoolDialog(getWalletForm().getMasterWalletId(), getWalletForm().getWallet(), selectedEntries); whirlpoolDialog.initOwner(utxosTable.getScene().getWindow());