rename wallet files to haveno_*

This commit is contained in:
woodser 2021-06-02 17:24:21 -04:00
parent 584b3c90ae
commit c96c0629ce
2 changed files with 6 additions and 6 deletions

View File

@ -654,7 +654,7 @@ public class WalletConfig extends AbstractIdleService {
// Do a backup of the wallet // Do a backup of the wallet
File backup = new File(directory, WalletsSetup.PRE_SEGWIT_WALLET_BACKUP); File backup = new File(directory, WalletsSetup.PRE_SEGWIT_WALLET_BACKUP);
try { try {
FileUtil.copyFile(new File(directory, "bisq_BTC.wallet"), backup); FileUtil.copyFile(new File(directory, "haveno_BTC.wallet"), backup);
} catch (IOException e) { } catch (IOException e) {
log.error(e.toString(), e); log.error(e.toString(), e);
} }

View File

@ -114,14 +114,14 @@ import monero.wallet.MoneroWallet;
@Slf4j @Slf4j
public class WalletsSetup { 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 @Getter
public final BooleanProperty walletsSetupFailed = new SimpleBooleanProperty(); public final BooleanProperty walletsSetupFailed = new SimpleBooleanProperty();
private static final long STARTUP_TIMEOUT = 180; private static final long STARTUP_TIMEOUT = 180;
private static final String BSQ_WALLET_FILE_NAME = "bisq_BSQ.wallet"; private static final String BSQ_WALLET_FILE_NAME = "haveno_BSQ.wallet";
private static final String SPV_CHAIN_FILE_NAME = "bisq.spvchain"; private static final String SPV_CHAIN_FILE_NAME = "haveno.spvchain";
private final RegTestHost regTestHost; private final RegTestHost regTestHost;
private final AddressEntryList addressEntryList; private final AddressEntryList addressEntryList;
@ -179,7 +179,7 @@ public class WalletsSetup {
this.socks5DiscoverMode = evaluateMode(socks5DiscoverModeString); this.socks5DiscoverMode = evaluateMode(socks5DiscoverModeString);
this.walletDir = walletDir; this.walletDir = walletDir;
xmrWalletFileName = "bisq_" + config.baseCurrencyNetwork.getCurrencyCode(); xmrWalletFileName = "haveno_" + config.baseCurrencyNetwork.getCurrencyCode();
params = Config.baseCurrencyNetworkParameters(); params = Config.baseCurrencyNetworkParameters();
PeerGroup.setIgnoreHttpSeeds(true); PeerGroup.setIgnoreHttpSeeds(true);
} }
@ -210,7 +210,7 @@ public class WalletsSetup {
walletConfig = new WalletConfig(params, walletConfig = new WalletConfig(params,
walletDir, walletDir,
"bisq") { "haveno") {
@Override @Override
protected void onSetupCompleted() { protected void onSetupCompleted() {
//We are here in the btcj thread Thread[ STARTING,5,main] //We are here in the btcj thread Thread[ STARTING,5,main]