Skip to content

Commit 9a72207

Browse files
committed
Expose CommitmentUpdate contents
This is an oversight as the MessageSendEvent is otherwise entirely useless.
1 parent 1bc190c commit 9a72207

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/ln/msgs.rs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -555,12 +555,18 @@ pub struct HandleError { //TODO: rename me
555555
/// transaction updates if they were pending.
556556
#[derive(PartialEq, Clone)]
557557
pub struct CommitmentUpdate {
558-
pub(crate) update_add_htlcs: Vec<UpdateAddHTLC>,
559-
pub(crate) update_fulfill_htlcs: Vec<UpdateFulfillHTLC>,
560-
pub(crate) update_fail_htlcs: Vec<UpdateFailHTLC>,
561-
pub(crate) update_fail_malformed_htlcs: Vec<UpdateFailMalformedHTLC>,
562-
pub(crate) update_fee: Option<UpdateFee>,
563-
pub(crate) commitment_signed: CommitmentSigned,
558+
/// update_add_htlc messages which should be sent
559+
pub update_add_htlcs: Vec<UpdateAddHTLC>,
560+
/// update_fulfill_htlc messages which should be sent
561+
pub update_fulfill_htlcs: Vec<UpdateFulfillHTLC>,
562+
/// update_fail_htlc messages which should be sent
563+
pub update_fail_htlcs: Vec<UpdateFailHTLC>,
564+
/// update_fail_malformed_htlc messages which should be sent
565+
pub update_fail_malformed_htlcs: Vec<UpdateFailMalformedHTLC>,
566+
/// An update_fee message which should be sent
567+
pub update_fee: Option<UpdateFee>,
568+
/// Finally, the commitment_signed message which should be sent
569+
pub commitment_signed: CommitmentSigned,
564570
}
565571

566572
/// The information we received from a peer along the route of a payment we originated. This is

0 commit comments

Comments
 (0)