beignet 0.5.8 → 0.6.0
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/dist/cli/beignet-node.js +9 -2
- package/dist/cli/beignet-node.js.map +1 -1
- package/dist/cli/openapi.js +2 -2
- package/dist/cli/openapi.js.map +1 -1
- package/dist/lightning/channel/channel.js +113 -23
- package/dist/lightning/channel/channel.js.map +1 -1
- package/dist/lightning/node/lightning-node.js +38 -21
- package/dist/lightning/node/lightning-node.js.map +1 -1
- package/dist/lightning/node/types.js.map +1 -1
- package/dist/types/lightning/channel/channel.d.ts +3 -0
- package/dist/types/lightning/node/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/cli/beignet-node.js
CHANGED
|
@@ -741,8 +741,15 @@ class BeignetNode extends events_1.EventEmitter {
|
|
|
741
741
|
getSplicingBalanceSats() {
|
|
742
742
|
let totalMsat = 0n;
|
|
743
743
|
for (const ch of this.node.listChannels()) {
|
|
744
|
-
if (ch.
|
|
745
|
-
|
|
744
|
+
if (ch.payThroughSplice === undefined)
|
|
745
|
+
continue;
|
|
746
|
+
const pending = ch.pendingSpliceLocalBalanceMsat ?? ch.localBalanceMsat;
|
|
747
|
+
if (ch.payThroughSplice) {
|
|
748
|
+
const counted = pending < ch.localBalanceMsat ? pending : ch.localBalanceMsat;
|
|
749
|
+
totalMsat += pending - counted;
|
|
750
|
+
}
|
|
751
|
+
else {
|
|
752
|
+
totalMsat += pending;
|
|
746
753
|
}
|
|
747
754
|
}
|
|
748
755
|
return Number(totalMsat / 1000n);
|