Commit 36af1f7
feat: add claimable_on_close_sats to ChannelDetails
Add claimable_on_close_sats field to ChannelDetails struct, computed from
the channel monitor's ClaimableOnChannelClose balance. This replaces the
workaround of approximating claimable amount using outbound_capacity + reserve.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 9323921 commit 36af1f7
20 files changed
Lines changed: 213 additions & 74 deletions
File tree
- bindings
- kotlin
- ldk-node-android
- lib/src/main
- jniLibs
- arm64-v8a
- armeabi-v7a
- x86_64
- kotlin/org/lightningdevkit/ldknode
- ldk-node-jvm
- python
- src/ldk_node
- swift/Sources/LDKNode
- src
- io
- payment
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
1 | 10 | | |
2 | 11 | | |
3 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8873 | 8873 | | |
8874 | 8874 | | |
8875 | 8875 | | |
| 8876 | + | |
8876 | 8877 | | |
8877 | 8878 | | |
8878 | 8879 | | |
| |||
8907 | 8908 | | |
8908 | 8909 | | |
8909 | 8910 | | |
8910 | | - | |
| 8911 | + | |
| 8912 | + | |
8911 | 8913 | | |
8912 | 8914 | | |
8913 | 8915 | | |
| |||
8942 | 8944 | | |
8943 | 8945 | | |
8944 | 8946 | | |
| 8947 | + | |
8945 | 8948 | | |
8946 | 8949 | | |
8947 | 8950 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
759 | | - | |
| 759 | + | |
| 760 | + | |
760 | 761 | | |
761 | 762 | | |
762 | 763 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
0 commit comments