mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 06:55:08 +01:00
Use Utilities.isWindows() instead of System.getProperty("os.name")
This commit is contained in:
parent
93558ef2a2
commit
b50f660349
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@ import bisq.core.btc.nodes.ProxySocketFactory;
|
|||
import bisq.core.btc.wallet.BisqRiskAnalysis;
|
||||
|
||||
import bisq.common.app.Version;
|
||||
import bisq.common.util.Utilities;
|
||||
|
||||
import org.bitcoinj.core.BlockChain;
|
||||
import org.bitcoinj.core.CheckpointManager;
|
||||
|
@ -321,7 +322,7 @@ public class WalletConfig extends AbstractIdleService {
|
|||
* Override this to use a {@link BlockStore} that isn't the default of {@link SPVBlockStore}.
|
||||
*/
|
||||
private BlockStore provideBlockStore(File file) throws BlockStoreException {
|
||||
if (System.getProperty("os.name").toLowerCase().contains("win")) {
|
||||
if (Utilities.isWindows()) {
|
||||
return new NonMMappedSPVBlockStore(params, file);
|
||||
} else {
|
||||
return new SPVBlockStore(params, file);
|
||||
|
|
Loading…
Add table
Reference in a new issue