mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-20 15:55:54 -04:00
dont allow mainnet
This commit is contained in:
parent
1ef19722c9
commit
5dcc68d04a
@ -58,6 +58,8 @@ import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkArgument;
|
||||
|
||||
/**
|
||||
* WalletService handles all non trade specific wallet and bitcoin related services.
|
||||
* It startup the wallet app kit and initialized the wallet.
|
||||
@ -102,6 +104,11 @@ public class WalletService {
|
||||
this.tradeWalletService = tradeWalletService;
|
||||
this.addressEntryList = addressEntryList;
|
||||
this.params = preferences.getBitcoinNetwork().getParameters();
|
||||
|
||||
// TODO remove after sufficient testing with testnet
|
||||
checkArgument(!params.getId().equals(NetworkParameters.ID_MAINNET),
|
||||
"Mainnet is not allowed to be used at that stage of development");
|
||||
|
||||
this.walletDir = new File(walletDir, "bitcoin");
|
||||
this.walletPrefix = walletPrefix;
|
||||
this.userAgent = userAgent;
|
||||
|
Loading…
x
Reference in New Issue
Block a user