Skip to content

Commit cff5e8b

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

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
@@ -481,12 +481,18 @@ pub struct HandleError { //TODO: rename me
481481
/// transaction updates if they were pending.
482482
#[derive(PartialEq, Clone)]
483483
pub struct CommitmentUpdate {
484-
pub(crate) update_add_htlcs: Vec<UpdateAddHTLC>,
485-
pub(crate) update_fulfill_htlcs: Vec<UpdateFulfillHTLC>,
486-
pub(crate) update_fail_htlcs: Vec<UpdateFailHTLC>,
487-
pub(crate) update_fail_malformed_htlcs: Vec<UpdateFailMalformedHTLC>,
488-
pub(crate) update_fee: Option<UpdateFee>,
489-
pub(crate) commitment_signed: CommitmentSigned,
484+
/// update_add_htlc messages which should be sent
485+
pub update_add_htlcs: Vec<UpdateAddHTLC>,
486+
/// update_fulfill_htlc messages which should be sent
487+
pub update_fulfill_htlcs: Vec<UpdateFulfillHTLC>,
488+
/// update_fail_htlc messages which should be sent
489+
pub update_fail_htlcs: Vec<UpdateFailHTLC>,
490+
/// update_fail_malformed_htlc messages which should be sent
491+
pub update_fail_malformed_htlcs: Vec<UpdateFailMalformedHTLC>,
492+
/// An update_fee message which should be sent
493+
pub update_fee: Option<UpdateFee>,
494+
/// Finally, the commitment_signed message which should be sent
495+
pub commitment_signed: CommitmentSigned,
490496
}
491497

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

0 commit comments

Comments
 (0)