ln-docker-daemons 2.3.6 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +2 -1
- package/cluster/spawn_lightning_cluster.js +12 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -133,10 +133,11 @@ Spawn a cluster of nodes
|
|
|
133
133
|
@returns via cbk or Promise
|
|
134
134
|
{
|
|
135
135
|
nodes: [{
|
|
136
|
-
generate: ({address, [
|
|
136
|
+
generate: <Make Block Function> ({address, count}, [cbk]) => {}
|
|
137
137
|
id: <Node Public Key Hex String>
|
|
138
138
|
kill: <Kill Function> ({}, cbk) => {}
|
|
139
139
|
lnd: <Authenticated LND API Object>
|
|
140
|
+
rpc: <RPC Connection Function> ({macaroon}) => {}
|
|
140
141
|
socket: <Node Socket String>
|
|
141
142
|
}]
|
|
142
143
|
}
|
|
@@ -34,10 +34,11 @@ const times = 3000;
|
|
|
34
34
|
@returns via cbk or Promise
|
|
35
35
|
{
|
|
36
36
|
nodes: [{
|
|
37
|
-
generate: ({address, count}, [cbk]) => {}
|
|
37
|
+
generate: <Make Block Function> ({address, count}, [cbk]) => {}
|
|
38
38
|
id: <Node Public Key Hex String>
|
|
39
39
|
kill: <Kill Function> ({}, cbk) => {}
|
|
40
40
|
lnd: <Authenticated LND API Object>
|
|
41
|
+
rpc: <RPC Connection Function> ({macaroon}) => {}
|
|
41
42
|
socket: <Node Socket String>
|
|
42
43
|
}]
|
|
43
44
|
}
|
|
@@ -122,6 +123,15 @@ module.exports = (args, cbk) => {
|
|
|
122
123
|
},
|
|
123
124
|
kill: lightningDocker.kill,
|
|
124
125
|
public_key: id,
|
|
126
|
+
rpc: ({macaroon}) => {
|
|
127
|
+
const {lnd} = authenticatedLndGrpc({
|
|
128
|
+
macaroon,
|
|
129
|
+
cert: lightningDocker.cert,
|
|
130
|
+
socket: lightningDocker.socket,
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
return {lnd};
|
|
134
|
+
},
|
|
125
135
|
socket: lightningDocker.ln_socket,
|
|
126
136
|
};
|
|
127
137
|
});
|
|
@@ -146,6 +156,7 @@ module.exports = (args, cbk) => {
|
|
|
146
156
|
id: node.id,
|
|
147
157
|
kill: node.kill,
|
|
148
158
|
lnd: node.lnd,
|
|
159
|
+
rpc: node.rpc,
|
|
149
160
|
socket: node.socket,
|
|
150
161
|
})),
|
|
151
162
|
};
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"asyncjs-util": "1.2.10",
|
|
13
13
|
"dockerode": "3.3.4",
|
|
14
14
|
"find-free-ports": "3.0.0",
|
|
15
|
-
"lightning": "
|
|
15
|
+
"lightning": "6.1.0",
|
|
16
16
|
"tar-stream": "2.2.0"
|
|
17
17
|
},
|
|
18
18
|
"description": "Spawn and control LN Docker daemons",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@alexbosworth/tap": "15.0.11"
|
|
21
21
|
},
|
|
22
22
|
"engines": {
|
|
23
|
-
"node": ">=
|
|
23
|
+
"node": ">=14"
|
|
24
24
|
},
|
|
25
25
|
"keywords": [
|
|
26
26
|
"docker"
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"scripts": {
|
|
36
36
|
"test": "tap --branches=1 --functions=1 --lines=1 --statements=1 -j 1 test/bitcoind/*.js test/lnd/*.js"
|
|
37
37
|
},
|
|
38
|
-
"version": "
|
|
38
|
+
"version": "3.0.1"
|
|
39
39
|
}
|