From 9a72207a166ea2c1eac9fafb44f386b78957c892 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 7 Jan 2019 23:13:11 -0500 Subject: [PATCH] Expose CommitmentUpdate contents This is an oversight as the MessageSendEvent is otherwise entirely useless. --- src/ln/msgs.rs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/ln/msgs.rs b/src/ln/msgs.rs index f6e89524a..f00dc34a5 100644 --- a/src/ln/msgs.rs +++ b/src/ln/msgs.rs @@ -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, - pub(crate) update_fulfill_htlcs: Vec, - pub(crate) update_fail_htlcs: Vec, - pub(crate) update_fail_malformed_htlcs: Vec, - pub(crate) update_fee: Option, - pub(crate) commitment_signed: CommitmentSigned, + /// update_add_htlc messages which should be sent + pub update_add_htlcs: Vec, + /// update_fulfill_htlc messages which should be sent + pub update_fulfill_htlcs: Vec, + /// update_fail_htlc messages which should be sent + pub update_fail_htlcs: Vec, + /// update_fail_malformed_htlc messages which should be sent + pub update_fail_malformed_htlcs: Vec, + /// An update_fee message which should be sent + pub update_fee: Option, + /// 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 -- 2.39.5