Skip to content

Commit ce2ffce

Browse files
Merge pull request #7430 from alvasw/BlockchainExplorerSelection_Remove_blockchain_explorer_name_empty_check
BlockchainExplorerSelection: Remove blockchain explorer name empty check
2 parents e5f2772 + bcfff09 commit ce2ffce

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

core/src/main/java/bisq/core/user/BlockchainExplorerSelection.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ public void selectNodes() {
2626
// if no valid Bitcoin block explorer is set, select the 1st valid Bitcoin block explorer
2727
ArrayList<BlockChainExplorer> btcExplorers = preferences.getBlockChainExplorers();
2828
if (preferences.getBlockChainExplorer() == null ||
29-
preferences.getBlockChainExplorer().getName().length() == 0 ||
3029
preferences.getBlockChainExplorer().getName().matches(deprecatedExplorers)) {
3130
preferences.setBlockChainExplorer(btcExplorers.get(0));
3231
}
3332

3433
// if no valid BSQ block explorer is set, randomly select a valid BSQ block explorer
3534
ArrayList<BlockChainExplorer> bsqExplorers = preferences.getBsqBlockChainExplorers();
3635
if (preferences.getBsqBlockChainExplorer() == null ||
37-
preferences.getBsqBlockChainExplorer().getName().length() == 0 ||
3836
preferences.getBsqBlockChainExplorer().getName().matches(deprecatedExplorers)) {
3937
preferences.setBsqBlockChainExplorer(bsqExplorers.get((new Random()).nextInt(bsqExplorers.size())));
4038
}

0 commit comments

Comments
 (0)