ln-docker-daemons 2.2.0 → 2.2.4

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 CHANGED
@@ -1,6 +1,18 @@
1
1
  # Versions
2
2
 
3
- ## 2.2.0
3
+ ## 2.2.4
4
+
5
+ - Change default LND version to v0.14.2-beta
6
+
7
+ ## 2.2.3
8
+
9
+ - Change Bitcoin Core version to 22.0
10
+
11
+ ## 2.2.2
12
+
13
+ - Change default LND version to v0.14.1-beta
14
+
15
+ ## 2.2.1
4
16
 
5
17
  - `spawnLightningCluster`, `spawnLightningDocker`: Add `lnd_configuration` to
6
18
  allow specifying additional LND configuration parameters
package/README.md CHANGED
@@ -28,6 +28,9 @@ Example:
28
28
  export DOCKER_LND_VERSION="v0.14.0-beta"
29
29
  ```
30
30
 
31
+ A list of available tags can be found here:
32
+ https://hub.docker.com/r/lightninglabs/lnd/tags
33
+
31
34
  ## spawnBitcoindDocker
32
35
 
33
36
  Spawn a Bitcoin Core Docker image
@@ -1,4 +1,4 @@
1
1
  {
2
- "dockerBitcoindImage": "ruimarinho/bitcoin-core:0.21.1",
2
+ "dockerBitcoindImage": "ruimarinho/bitcoin-core:22.0",
3
3
  "rpcUser": "bitcoinrpc"
4
4
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "dockerLndImage": "lightninglabs/lnd:v0.14.0-beta"
2
+ "dockerLndImage": "lightninglabs/lnd:v0.14.2-beta"
3
3
  }
@@ -139,40 +139,28 @@ module.exports = (args, cbk) => {
139
139
  cipher_seed_mnemonic: res.cipher_seed_mnemonic,
140
140
  wallet_password: Buffer.from('password', 'utf8'),
141
141
  },
142
- err => {
142
+ (err, res) => {
143
143
  if (!!err) {
144
144
  return cbk([503, 'UnexpectedErrorInitializingWallet', {err}]);
145
145
  }
146
146
 
147
- return cbk();
147
+ return cbk(null, res.admin_macaroon);
148
148
  });
149
149
  });
150
150
  },
151
151
  cbk);
152
152
  }],
153
153
 
154
- // Get the macaroon out of the docker image
155
- getMacaroon: [
156
- 'createWallet',
157
- 'spawnDocker',
158
- ({createWallet, spawnDocker}, cbk) =>
159
- {
160
- return asyncRetry({interval, times}, cbk => {
161
- return spawnDocker.getFile({path: macaroonPath}, cbk);
162
- },
163
- cbk);
164
- }],
165
-
166
154
  // Wait for gRPC to respond
167
155
  waitForRpc: [
156
+ 'createWallet',
168
157
  'getCertificate',
169
- 'getMacaroon',
170
158
  'spawnDocker',
171
- ({getCertificate, getMacaroon, spawnDocker}, cbk) =>
159
+ ({createWallet, getCertificate, spawnDocker}, cbk) =>
172
160
  {
173
161
  const {lnd} = authenticatedLndGrpc({
174
162
  cert: getCertificate.file.toString('hex'),
175
- macaroon: getMacaroon.file.toString('hex'),
163
+ macaroon: createWallet.toString('hex'),
176
164
  socket: `localhost:${args.rpc_port}`,
177
165
  });
178
166
 
@@ -184,17 +172,17 @@ module.exports = (args, cbk) => {
184
172
 
185
173
  // LND fully spawned
186
174
  spawned: [
175
+ 'createWallet',
187
176
  'getCertificate',
188
- 'getMacaroon',
189
177
  'spawnDocker',
190
178
  'waitForRpc',
191
- ({getCertificate, getMacaroon, spawnDocker, waitForRpc}, cbk) =>
179
+ ({createWallet, getCertificate, spawnDocker, waitForRpc}, cbk) =>
192
180
  {
193
181
  return cbk(null, {
194
182
  cert: getCertificate.file.toString('base64'),
195
183
  host: spawnDocker.host,
196
184
  kill: spawnDocker.kill,
197
- macaroon: getMacaroon.file.toString('base64'),
185
+ macaroon: createWallet.toString('hex'),
198
186
  public_key: waitForRpc.public_key,
199
187
  socket: `localhost:${args.rpc_port}`,
200
188
  });
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "asyncjs-util": "1.2.8",
13
13
  "dockerode": "3.3.1",
14
14
  "find-free-ports": "3.0.0",
15
- "lightning": "5.3.1",
15
+ "lightning": "5.6.1",
16
16
  "tar-stream": "2.2.0"
17
17
  },
18
18
  "description": "Spawn and control LN Docker daemons",
@@ -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": "2.2.0"
38
+ "version": "2.2.4"
39
39
  }