Expose CommitmentUpdate contents
authorMatt Corallo <git@bluematt.me>
Tue, 8 Jan 2019 04:13:11 +0000 (23:13 -0500)
committerMatt Corallo <git@bluematt.me>
Thu, 24 Jan 2019 18:16:59 +0000 (13:16 -0500)
This is an oversight as the MessageSendEvent is otherwise entirely
useless.

src/ln/msgs.rs

index f6e89524a6de4e0927cdacdd588b4effcc6843a9..f00dc34a50024a48d36c9a0ebf3c0dc695567f3b 100644 (file)
@@ -555,12 +555,18 @@ pub struct HandleError { //TODO: rename me
 /// transaction updates if they were pending.
 #[derive(PartialEq, Clone)]
 pub struct CommitmentUpdate {
-       pub(crate) update_add_htlcs: Vec<UpdateAddHTLC>,
-       pub(crate) update_fulfill_htlcs: Vec<UpdateFulfillHTLC>,
-       pub(crate) update_fail_htlcs: Vec<UpdateFailHTLC>,
-       pub(crate) update_fail_malformed_htlcs: Vec<UpdateFailMalformedHTLC>,
-       pub(crate) update_fee: Option<UpdateFee>,
-       pub(crate) commitment_signed: CommitmentSigned,
+       /// update_add_htlc messages which should be sent
+       pub update_add_htlcs: Vec<UpdateAddHTLC>,
+       /// update_fulfill_htlc messages which should be sent
+       pub update_fulfill_htlcs: Vec<UpdateFulfillHTLC>,
+       /// update_fail_htlc messages which should be sent
+       pub update_fail_htlcs: Vec<UpdateFailHTLC>,
+       /// update_fail_malformed_htlc messages which should be sent
+       pub update_fail_malformed_htlcs: Vec<UpdateFailMalformedHTLC>,
+       /// An update_fee message which should be sent
+       pub update_fee: Option<UpdateFee>,
+       /// Finally, the commitment_signed message which should be sent
+       pub commitment_signed: CommitmentSigned,
 }
 
 /// The information we received from a peer along the route of a payment we originated. This is