Enum dlc_manager::channel::Channel
source · pub enum Channel {
Offered(OfferedChannel),
Accepted(AcceptedChannel),
Signed(SignedChannel),
FailedAccept(FailedAccept),
FailedSign(FailedSign),
}Expand description
Enumeration containing the possible state a DLC channel can be in.
Variants§
Offered(OfferedChannel)
A channel that has been offered.
Accepted(AcceptedChannel)
A channel that has been accepted.
Signed(SignedChannel)
A channel whose fund outputs have been signed by the offer party.
FailedAccept(FailedAccept)
A channel that failed when validating an
dlc_messages::channel::AcceptChannel message.
FailedSign(FailedSign)
A channel that failed when validating an
dlc_messages::channel::SignChannel message.
Implementations§
source§impl Channel
impl Channel
sourcepub fn get_counter_party_id(&self) -> PublicKey
pub fn get_counter_party_id(&self) -> PublicKey
Returns the public key of the counter party’s node.
source§impl Channel
impl Channel
sourcepub fn get_temporary_id(&self) -> ChannelId
pub fn get_temporary_id(&self) -> ChannelId
Returns the temporary crate::ChannelId for the channel.
sourcepub fn get_id(&self) -> ChannelId
pub fn get_id(&self) -> ChannelId
Returns the crate::ChannelId for the channel.