Skip to content

Commit e149790

Browse files
committed
f is_usable instead of is_live
1 parent 65338eb commit e149790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
17281728
// `have_received_message` indicates that type negotiation has completed.
17291729
channel_type: if channel.have_received_message() { Some(channel.get_channel_type().clone()) } else { None },
17301730
short_channel_id: channel.get_short_channel_id(),
1731-
outbound_scid_alias: if channel.is_live() { Some(channel.outbound_scid_alias()) } else { None },
1731+
outbound_scid_alias: if channel.is_usable() { Some(channel.outbound_scid_alias()) } else { None },
17321732
inbound_scid_alias: channel.latest_inbound_scid_alias(),
17331733
channel_value_satoshis: channel.get_value_satoshis(),
17341734
unspendable_punishment_reserve: to_self_reserve_satoshis,

0 commit comments

Comments
 (0)