Comparing version 0.0.30 to 0.0.31
@@ -73,4 +73,5 @@ import settings from './settings' | ||
var GLOBAL = global || window; | ||
if(!newNetwork) return | ||
GLOBAL.network = newNetwork | ||
console.log('newNetwork:'+newNetwork) | ||
if(!newNetwork || newNetwork === undefined) GLOBAL.network == "mainnet" | ||
else GLOBAL.network = newNetwork | ||
@@ -81,11 +82,13 @@ if (GLOBAL.network === "mainnet") { | ||
} | ||
if (GLOBAL.network === "testnet") { | ||
else if (GLOBAL.network === "testnet") { | ||
GLOBAL.DEFAULT_NETWORK = DOICHAIN_TESTNET | ||
GLOBAL.DEFAULT_SETTINGS = settingsTestnet | ||
} | ||
if (GLOBAL.network === "regtest") { | ||
else { //(GLOBAL.network === "regtest") { | ||
GLOBAL.network = "regtest" | ||
GLOBAL.DEFAULT_NETWORK = DOICHAIN_REGTEST | ||
GLOBAL.DEFAULT_SETTINGS = settingsRegTest | ||
} | ||
// console.log('changed network to',GLOBAL.network) | ||
console.log('changed network to',GLOBAL.network) | ||
//if(GLOBAL.network !== 'mainnet' && GLOBAL.network !== 'testnet' && GLOBAL.network !== 'regtest') | ||
settings.setSettings(GLOBAL.DEFAULT_SETTINGS) | ||
@@ -92,0 +95,0 @@ //console.log('DEFAULT_NETWORK',DEFAULT_NETWORK) |
{ | ||
"name": "doichain", | ||
"version": "0.0.30", | ||
"version": "0.0.31", | ||
"description": "A js-Doichain library. The goal is to fully cover the Doichain protocol", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35562
701