Skip to content

Commit

Permalink
mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Impleum committed Jun 18, 2019
1 parent ab8b8d4 commit c23f546
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions Breeze.UI/main.ts
Expand Up @@ -36,27 +36,25 @@ let storeDir;
let bitcoinPort;
let impleumPort;
let startDaemons;
(<any>global).bitcoinApiPort = 38220;
(<any>global).impleumApiPort = 39222;
(<any>global).bitcoinApiPort = 37220;
(<any>global).impleumApiPort = 38222;
const args = process.argv.slice(1);
serve = args.some(val => val === '--serve' || val === '-serve');
startDaemons = !args.some(val => val === '--noDaemons' || val === '-noDaemons');

testnet = true;


// if (args.some(val => val === '--testnet' || val === '-testnet')) {
// testnet = true;
// (<any>global).bitcoinApiPort = 38220;
// (<any>global).impleumApiPort = 39222;
// } else if (args.some(val => val === '--regtest' || val === '-regtest')) {
// regtest = true;
// (<any>global).bitcoinApiPort = 37220;
// (<any>global).impleumApiPort = 37221;
// } else if (args.some(val => val === '--mainnet' || val === '-mainnet')) {
// (<any>global).bitcoinApiPort = 37220;
// (<any>global).impleumApiPort = 38222;
// }

if (args.some(val => val === '--testnet' || val === '-testnet')) {
testnet = true;
(<any>global).bitcoinApiPort = 38220;
(<any>global).impleumApiPort = 39222;
} else if (args.some(val => val === '--regtest' || val === '-regtest')) {
regtest = true;
(<any>global).bitcoinApiPort = 37220;
(<any>global).impleumApiPort = 37221;
} else if (args.some(val => val === '--mainnet' || val === '-mainnet')) {
(<any>global).bitcoinApiPort = 37220;
(<any>global).impleumApiPort = 38222;
}

//Set custom blockchain protocol ports
if (args.some(val => val.indexOf("--bitcoinPort=") == 0 || val.indexOf("-bitcoinPort=") == 0)) {
Expand Down

0 comments on commit c23f546

Please sign in to comment.