Skip to content

Commit 4d94ece

Browse files
committed
Account for ChannelDetails::balance_msat being removed
1 parent 8dcf1cf commit 4d94ece

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

bindings/ldk_node.udl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ dictionary ChannelDetails {
186186
u64? unspendable_punishment_reserve;
187187
UserChannelId user_channel_id;
188188
u32 feerate_sat_per_1000_weight;
189-
u64 balance_msat;
190189
u64 outbound_capacity_msat;
191190
u64 inbound_capacity_msat;
192191
u32? confirmations_required;

src/types.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,6 @@ pub struct ChannelDetails {
183183
/// The currently negotiated fee rate denominated in satoshi per 1000 weight units,
184184
/// which is applied to commitment and HTLC transactions.
185185
pub feerate_sat_per_1000_weight: u32,
186-
/// The total balance of the channel. This is the amount that will be returned to
187-
/// the user if the channel is closed.
188-
///
189-
/// The value is not exact, due to potential in-flight and fee-rate changes. Therefore, exactly
190-
/// this amount is likely irrecoverable on close.
191-
pub balance_msat: u64,
192186
/// The available outbound capacity for sending HTLCs to the remote peer.
193187
///
194188
/// The amount does not include any pending HTLCs which are not yet resolved (and, thus, whose
@@ -237,7 +231,6 @@ impl From<LdkChannelDetails> for ChannelDetails {
237231
channel_value_sats: value.channel_value_satoshis,
238232
unspendable_punishment_reserve: value.unspendable_punishment_reserve,
239233
user_channel_id: UserChannelId(value.user_channel_id),
240-
balance_msat: value.balance_msat,
241234
feerate_sat_per_1000_weight: value.feerate_sat_per_1000_weight.unwrap(),
242235
outbound_capacity_msat: value.outbound_capacity_msat,
243236
inbound_capacity_msat: value.inbound_capacity_msat,

0 commit comments

Comments
 (0)