@@ -4295,6 +4295,7 @@ impl<Signer: Sign> Channel<Signer> {
4295
4295
}
4296
4296
/// Only fails in case of bad keys
4297
4297
fn send_commitment_no_status_check < L : Deref > ( & mut self , logger : & L ) -> Result < ( msgs:: CommitmentSigned , ChannelMonitorUpdate ) , ChannelError > where L :: Target : Logger {
4298
+ log_trace ! ( logger, "Updating HTLC state for a newly-sent commitment_signed..." ) ;
4298
4299
// We can upgrade the status of some HTLCs that are waiting on a commitment, even if we
4299
4300
// fail to generate this, we still are at least at a position where upgrading their status
4300
4301
// is acceptable.
@@ -4303,19 +4304,22 @@ impl<Signer: Sign> Channel<Signer> {
4303
4304
Some ( InboundHTLCState :: AwaitingAnnouncedRemoteRevoke ( forward_info. clone ( ) ) )
4304
4305
} else { None } ;
4305
4306
if let Some ( state) = new_state {
4307
+ log_trace ! ( logger, " ...promoting inbound AwaitingRemoteRevokeToAnnounce {} to AwaitingAnnouncedRemoteRevoke" , log_bytes!( htlc. payment_hash. 0 ) ) ;
4306
4308
htlc. state = state;
4307
4309
}
4308
4310
}
4309
4311
for htlc in self . pending_outbound_htlcs . iter_mut ( ) {
4310
4312
if let Some ( fail_reason) = if let & mut OutboundHTLCState :: AwaitingRemoteRevokeToRemove ( ref mut fail_reason) = & mut htlc. state {
4311
4313
Some ( fail_reason. take ( ) )
4312
4314
} else { None } {
4315
+ log_trace ! ( logger, " ...promoting outbound AwaitingRemoteRevokeToRemove {} to AwaitingRemovedRemoteRevoke" , log_bytes!( htlc. payment_hash. 0 ) ) ;
4313
4316
htlc. state = OutboundHTLCState :: AwaitingRemovedRemoteRevoke ( fail_reason) ;
4314
4317
}
4315
4318
}
4316
4319
if !self . is_outbound ( ) {
4317
4320
if let Some ( ( feerate, update_state) ) = self . pending_update_fee {
4318
4321
if update_state == InboundFeeUpdateState :: AwaitingRemoteRevokeToAnnounce {
4322
+ log_trace ! ( logger, " ...promoting inbound AwaitingRemoteRevokeToAnnounce fee update {} to Committed" , feerate) ;
4319
4323
self . feerate_per_kw = feerate;
4320
4324
self . pending_update_fee = None ;
4321
4325
}
0 commit comments