mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-23 20:36:44 +00:00
restrict mixing to mainnet and testnet
This commit is contained in:
parent
0b55dd8a1e
commit
6bbae204a6
2 changed files with 5 additions and 1 deletions
|
@ -140,7 +140,10 @@ public class UtxosController extends WalletFormController implements Initializab
|
|||
}
|
||||
|
||||
private boolean canWalletMix() {
|
||||
return getWalletForm().getWallet().getKeystores().size() == 1 && getWalletForm().getWallet().getKeystores().get(0).hasSeed() && !getWalletForm().getWallet().isWhirlpoolMixWallet();
|
||||
return Whirlpool.WHIRLPOOL_NETWORKS.contains(Network.get())
|
||||
&& getWalletForm().getWallet().getKeystores().size() == 1
|
||||
&& getWalletForm().getWallet().getKeystores().get(0).hasSeed()
|
||||
&& !getWalletForm().getWallet().isWhirlpoolMixWallet();
|
||||
}
|
||||
|
||||
private void updateButtons(BitcoinUnit unit) {
|
||||
|
|
|
@ -59,6 +59,7 @@ import java.util.stream.Collectors;
|
|||
public class Whirlpool {
|
||||
private static final Logger log = LoggerFactory.getLogger(Whirlpool.class);
|
||||
|
||||
public static final List<Network> WHIRLPOOL_NETWORKS = List.of(Network.MAINNET, Network.TESTNET);
|
||||
public static final int DEFAULT_MIXTO_MIN_MIXES = 5;
|
||||
public static final int DEFAULT_MIXTO_RANDOM_FACTOR = 4;
|
||||
|
||||
|
|
Loading…
Reference in a new issue