Commit 705b8f62 authored by bitsoko services's avatar bitsoko services 👷🏿

Update index.js

parent 63e8bb8f
......@@ -43,7 +43,10 @@ console.log(process.argv[9]);
isContractManager=false;
if(process.argv[2]){
//TO-DO
//match bitsoko nodeid
if(process.argv[2]=="bitsoko"){
isContractManager=true;
......@@ -128,6 +131,7 @@ LISTENport = parseInt(process.argv[8]);
WTport = parseInt(process.argv[9]);
var onionGRPC;
var onionREST;
var onionLISTEN;
setupOnion('GRPC', GRPCport);
setupOnion('REST', RESTport);
......@@ -217,6 +221,8 @@ child.stdout.on('data', async function(data) {
onionGrpcSet();
} else if(type === 'REST'){
onionREST = onion;
} else if(type === 'LISTEN'){
onionLISTEN = onion;
}
......@@ -453,7 +459,10 @@ function setupLnd(passcode, mnemonic, onion){
if(isContractManager){
console.log('INFO! connecting to contract mothernode');
// isCM = ' --neutrino.connect=lnd-p2p.bitsoko.org ';
isCM = ' --neutrino.addpeer=btcd-mainnet.lightning.computer --neutrino.addpeer=ibfqowe6arfy4g27q7hd3bovhvpbjlsygrbf42vrmvtb7au4kkbmmqad.onion ';
isCM = ' --neutrino.addpeer=btcd-mainnet.lightning.computer --neutrino.addpeer=ibfqowe6arfy4g27q7hd3bovhvpbjlsygrbf42vrmvtb7au4kkbmmqad.onion --protocol.option-scid-alias=false --protocol.zero-conf=true';
setupOnion('LISTEN', LISTENport);
}else{
console.log('INFO! this is contract mothernode');
isCM = ' --neutrino.addpeer=btcd-mainnet.lightning.computer --neutrino.addpeer=ibfqowe6arfy4g27q7hd3bovhvpbjlsygrbf42vrmvtb7au4kkbmmqad.onion ';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment