From c96c0629ceebf2721993134880ba7d25afd84fe0 Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 2 Jun 2021 17:24:21 -0400 Subject: [PATCH] rename wallet files to haveno_* --- .../main/java/bisq/core/btc/setup/WalletConfig.java | 2 +- .../main/java/bisq/core/btc/setup/WalletsSetup.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/bisq/core/btc/setup/WalletConfig.java b/core/src/main/java/bisq/core/btc/setup/WalletConfig.java index 6958c7a4..97cb0f74 100644 --- a/core/src/main/java/bisq/core/btc/setup/WalletConfig.java +++ b/core/src/main/java/bisq/core/btc/setup/WalletConfig.java @@ -654,7 +654,7 @@ public class WalletConfig extends AbstractIdleService { // Do a backup of the wallet File backup = new File(directory, WalletsSetup.PRE_SEGWIT_WALLET_BACKUP); try { - FileUtil.copyFile(new File(directory, "bisq_BTC.wallet"), backup); + FileUtil.copyFile(new File(directory, "haveno_BTC.wallet"), backup); } catch (IOException e) { log.error(e.toString(), e); } diff --git a/core/src/main/java/bisq/core/btc/setup/WalletsSetup.java b/core/src/main/java/bisq/core/btc/setup/WalletsSetup.java index b9ae8d10..d4a00453 100644 --- a/core/src/main/java/bisq/core/btc/setup/WalletsSetup.java +++ b/core/src/main/java/bisq/core/btc/setup/WalletsSetup.java @@ -114,14 +114,14 @@ import monero.wallet.MoneroWallet; @Slf4j public class WalletsSetup { - public static final String PRE_SEGWIT_WALLET_BACKUP = "pre_segwit_bisq_BTC.wallet.backup"; + public static final String PRE_SEGWIT_WALLET_BACKUP = "pre_segwit_haveno_BTC.wallet.backup"; @Getter public final BooleanProperty walletsSetupFailed = new SimpleBooleanProperty(); private static final long STARTUP_TIMEOUT = 180; - private static final String BSQ_WALLET_FILE_NAME = "bisq_BSQ.wallet"; - private static final String SPV_CHAIN_FILE_NAME = "bisq.spvchain"; + private static final String BSQ_WALLET_FILE_NAME = "haveno_BSQ.wallet"; + private static final String SPV_CHAIN_FILE_NAME = "haveno.spvchain"; private final RegTestHost regTestHost; private final AddressEntryList addressEntryList; @@ -179,7 +179,7 @@ public class WalletsSetup { this.socks5DiscoverMode = evaluateMode(socks5DiscoverModeString); this.walletDir = walletDir; - xmrWalletFileName = "bisq_" + config.baseCurrencyNetwork.getCurrencyCode(); + xmrWalletFileName = "haveno_" + config.baseCurrencyNetwork.getCurrencyCode(); params = Config.baseCurrencyNetworkParameters(); PeerGroup.setIgnoreHttpSeeds(true); } @@ -210,7 +210,7 @@ public class WalletsSetup { walletConfig = new WalletConfig(params, walletDir, - "bisq") { + "haveno") { @Override protected void onSetupCompleted() { //We are here in the btcj thread Thread[ STARTING,5,main]