@@ -4236,6 +4236,7 @@ impl<Signer: Sign> Channel<Signer> {
42364236 }
42374237 /// Only fails in case of bad keys
42384238 fn send_commitment_no_status_check < L : Deref > ( & mut self , logger : & L ) -> Result < ( msgs:: CommitmentSigned , ChannelMonitorUpdate ) , ChannelError > where L :: Target : Logger {
4239+ log_trace ! ( logger, "Updating HTLC state for a newly-sent commitment_signed..." ) ;
42394240 // We can upgrade the status of some HTLCs that are waiting on a commitment, even if we
42404241 // fail to generate this, we still are at least at a position where upgrading their status
42414242 // is acceptable.
@@ -4244,19 +4245,22 @@ impl<Signer: Sign> Channel<Signer> {
42444245 Some ( InboundHTLCState :: AwaitingAnnouncedRemoteRevoke ( forward_info. clone ( ) ) )
42454246 } else { None } ;
42464247 if let Some ( state) = new_state {
4248+ log_trace ! ( logger, " ...promoting inbound AwaitingRemoteRevokeToAnnounce {} to AwaitingAnnouncedRemoteRevoke" , log_bytes!( htlc. payment_hash. 0 ) ) ;
42474249 htlc. state = state;
42484250 }
42494251 }
42504252 for htlc in self . pending_outbound_htlcs . iter_mut ( ) {
42514253 if let Some ( fail_reason) = if let & mut OutboundHTLCState :: AwaitingRemoteRevokeToRemove ( ref mut fail_reason) = & mut htlc. state {
42524254 Some ( fail_reason. take ( ) )
42534255 } else { None } {
4256+ log_trace ! ( logger, " ...promoting outbound AwaitingRemoteRevokeToRemove {} to AwaitingRemovedRemoteRevoke" , log_bytes!( htlc. payment_hash. 0 ) ) ;
42544257 htlc. state = OutboundHTLCState :: AwaitingRemovedRemoteRevoke ( fail_reason) ;
42554258 }
42564259 }
42574260 if !self . is_outbound ( ) {
42584261 if let Some ( ( feerate, update_state) ) = self . pending_update_fee {
42594262 if update_state == InboundFeeUpdateState :: AwaitingRemoteRevokeToAnnounce {
4263+ log_trace ! ( logger, " ...promoting inbound AwaitingRemoteRevokeToAnnounce fee update {} to Committed" , feerate) ;
42604264 self . feerate_per_kw = feerate;
42614265 self . pending_update_fee = None ;
42624266 }
0 commit comments