beignet 0.6.4 → 0.6.6

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.
@@ -1361,10 +1361,10 @@ class BeignetNode extends events_1.EventEmitter {
1361
1361
  updatesApplied: result.updatesApplied
1362
1362
  };
1363
1363
  }
1364
- openChannel(pubkey, amountSats, pushSats, satsPerVbyte) {
1364
+ openChannel(pubkey, amountSats, pushSats, satsPerVbyte, max = false) {
1365
1365
  const fundingSatoshis = BigInt(amountSats);
1366
1366
  const pushMsat = pushSats !== undefined ? BigInt(pushSats) * 1000n : undefined;
1367
- const channel = this.node.openChannel(pubkey, fundingSatoshis, pushMsat, satsPerVbyte);
1367
+ const channel = this.node.openChannel(pubkey, fundingSatoshis, pushMsat, satsPerVbyte, max);
1368
1368
  const state = channel.getFullState();
1369
1369
  const balances = channel.getBalances();
1370
1370
  const channelId = state.channelId || state.temporaryChannelId;
@@ -1387,7 +1387,7 @@ class BeignetNode extends events_1.EventEmitter {
1387
1387
  }
1388
1388
  async connectAndOpenChannel(pubkey, host, port, amountSats, opts) {
1389
1389
  await this.connectPeer(pubkey, host, port);
1390
- return this.openChannel(pubkey, amountSats, opts?.pushSats, opts?.satsPerVbyte);
1390
+ return this.openChannel(pubkey, amountSats, opts?.pushSats, opts?.satsPerVbyte, opts?.max);
1391
1391
  }
1392
1392
  async ensureMinimumChannels(count, satsPerChannel, _opts) {
1393
1393
  const existing = this.getReadyChannels();