@@ -555,12 +555,18 @@ pub struct HandleError { //TODO: rename me
555
555
/// transaction updates if they were pending.
556
556
#[ derive( PartialEq , Clone ) ]
557
557
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 ,
564
570
}
565
571
566
572
/// The information we received from a peer along the route of a payment we originated. This is
0 commit comments