beignet 0.7.0 → 0.7.2

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.
@@ -1399,7 +1399,7 @@ class BeignetNode extends events_1.EventEmitter {
1399
1399
  state: state.state,
1400
1400
  localBalanceSats: Number(balances.localMsat / 1000n),
1401
1401
  remoteBalanceSats: Number(balances.remoteMsat / 1000n),
1402
- capacitySats: amountSats,
1402
+ capacitySats: Number(state.fundingSatoshis),
1403
1403
  isAnchor: (0, types_3.isAnchorChannel)(state.channelType)
1404
1404
  };
1405
1405
  }
@@ -1489,7 +1489,11 @@ class BeignetNode extends events_1.EventEmitter {
1489
1489
  if (!channel)
1490
1490
  return null;
1491
1491
  const state = channel.getFullState();
1492
- const peerPubkey = this.node.getChannelManager().getPeerForChannel(channelIdBuf) || '';
1492
+ const peerPubkey = this.node.getChannelManager().getPeerForChannel(channelIdBuf) ||
1493
+ this.node
1494
+ .getChannelManager()
1495
+ .getPeerForChannel(channel.getTemporaryChannelId()) ||
1496
+ '';
1493
1497
  const isPeerConnected = this.listPeers().some((p) => p.pubkey === peerPubkey);
1494
1498
  const scidAlias = channel.getScidAlias();
1495
1499
  const remoteScidAlias = channel.getRemoteScidAlias();