Use Utilities.isWindows() instead of System.getProperty("os.name")

This commit is contained in:
Manfred Karrer 2019-02-14 17:02:29 -05:00
parent 93558ef2a2
commit b50f660349
No known key found for this signature in database
GPG key ID: 401250966A6B2C46

View file

@ -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);