X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fln%2Fmsgs.rs;h=610158503e6656a462d90f25a41e32bd1cbcd6a7;hb=ba30061c87fca9d808e9e13569b8ea914503fae6;hp=9ff62de38c6e6ae950d5f4143b65542698918c17;hpb=6c1123cafd5e4821042e6f57efdf83af62e6fc6a;p=rust-lightning diff --git a/src/ln/msgs.rs b/src/ln/msgs.rs index 9ff62de3..61015850 100644 --- a/src/ln/msgs.rs +++ b/src/ln/msgs.rs @@ -224,6 +224,7 @@ pub struct FundingSigned { } /// A funding_locked message to be sent or received from a peer +#[derive(Clone)] pub struct FundingLocked { pub(crate) channel_id: [u8; 32], pub(crate) next_per_commitment_point: PublicKey, @@ -484,7 +485,19 @@ pub enum HTLCFailChannelUpdate { ChannelClosed { /// The short_channel_id which has now closed. short_channel_id: u64, + /// when this true, this channel should be permanently removed from the + /// consideration. Otherwise, this channel can be restored as new channel_update is received + is_permanent: bool, }, + /// We received an error which indicated only that a node has failed + NodeFailure { + /// The node_id that has failed. + node_id: PublicKey, + /// when this true, node should be permanently removed from the + /// consideration. Otherwise, the channels connected to this node can be + /// restored as new channel_update is received + is_permanent: bool, + } } /// A trait to describe an object which can receive channel messages.