Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
lightning-bits
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bitsoko services
lightning-bits
Commits
705b8f62
Commit
705b8f62
authored
Mar 30, 2024
by
bitsoko services
👷🏿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update index.js
parent
63e8bb8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
index.js
remote/index.js
+11
-2
No files found.
remote/index.js
View file @
705b8f62
...
...
@@ -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 '
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment