@@ -409,7 +409,7 @@ pub(super) struct ReestablishResponses {
409
409
pub order : RAACommitmentOrder ,
410
410
pub mon_update : Option < ChannelMonitorUpdate > ,
411
411
pub holding_cell_failed_htlcs : Vec < ( HTLCSource , PaymentHash ) > ,
412
- pub shutdown : Option < msgs:: Shutdown > ,
412
+ pub shutdown_msg : Option < msgs:: Shutdown > ,
413
413
}
414
414
415
415
/// If the majority of the channels funds are to the fundee and the initiator holds only just
@@ -3548,7 +3548,7 @@ impl<Signer: Sign> Channel<Signer> {
3548
3548
// remaining cases either succeed or ErrorMessage-fail).
3549
3549
self . channel_state &= !( ChannelState :: PeerDisconnected as u32 ) ;
3550
3550
3551
- let shutdown = if self . channel_state & ( ChannelState :: LocalShutdownSent as u32 ) != 0 {
3551
+ let shutdown_msg = if self . channel_state & ( ChannelState :: LocalShutdownSent as u32 ) != 0 {
3552
3552
assert ! ( self . shutdown_scriptpubkey. is_some( ) ) ;
3553
3553
Some ( msgs:: Shutdown {
3554
3554
channel_id : self . channel_id ,
@@ -3569,7 +3569,7 @@ impl<Signer: Sign> Channel<Signer> {
3569
3569
raa : None , commitment_update : None , mon_update : None ,
3570
3570
order : RAACommitmentOrder :: CommitmentFirst ,
3571
3571
holding_cell_failed_htlcs : Vec :: new ( ) ,
3572
- shutdown
3572
+ shutdown_msg
3573
3573
} ) ;
3574
3574
}
3575
3575
@@ -3583,7 +3583,7 @@ impl<Signer: Sign> Channel<Signer> {
3583
3583
raa : None , commitment_update : None , mon_update : None ,
3584
3584
order : RAACommitmentOrder :: CommitmentFirst ,
3585
3585
holding_cell_failed_htlcs : Vec :: new ( ) ,
3586
- shutdown
3586
+ shutdown_msg
3587
3587
} ) ;
3588
3588
}
3589
3589
@@ -3635,7 +3635,7 @@ impl<Signer: Sign> Channel<Signer> {
3635
3635
panic ! ( "Got non-channel-failing result from free_holding_cell_htlcs" ) ,
3636
3636
Ok ( ( Some ( ( commitment_update, monitor_update) ) , holding_cell_failed_htlcs) ) => {
3637
3637
Ok ( ReestablishResponses {
3638
- funding_locked, shutdown ,
3638
+ funding_locked, shutdown_msg ,
3639
3639
raa : required_revoke,
3640
3640
commitment_update : Some ( commitment_update) ,
3641
3641
order : self . resend_order . clone ( ) ,
@@ -3645,7 +3645,7 @@ impl<Signer: Sign> Channel<Signer> {
3645
3645
} ,
3646
3646
Ok ( ( None , holding_cell_failed_htlcs) ) => {
3647
3647
Ok ( ReestablishResponses {
3648
- funding_locked, shutdown ,
3648
+ funding_locked, shutdown_msg ,
3649
3649
raa : required_revoke,
3650
3650
commitment_update : None ,
3651
3651
order : self . resend_order . clone ( ) ,
@@ -3656,7 +3656,7 @@ impl<Signer: Sign> Channel<Signer> {
3656
3656
}
3657
3657
} else {
3658
3658
Ok ( ReestablishResponses {
3659
- funding_locked, shutdown ,
3659
+ funding_locked, shutdown_msg ,
3660
3660
raa : required_revoke,
3661
3661
commitment_update : None ,
3662
3662
order : self . resend_order . clone ( ) ,
@@ -3674,14 +3674,14 @@ impl<Signer: Sign> Channel<Signer> {
3674
3674
if self . channel_state & ( ChannelState :: MonitorUpdateFailed as u32 ) != 0 {
3675
3675
self . monitor_pending_commitment_signed = true ;
3676
3676
Ok ( ReestablishResponses {
3677
- funding_locked, shutdown ,
3677
+ funding_locked, shutdown_msg ,
3678
3678
commitment_update : None , raa : None , mon_update : None ,
3679
3679
order : self . resend_order . clone ( ) ,
3680
3680
holding_cell_failed_htlcs : Vec :: new ( ) ,
3681
3681
} )
3682
3682
} else {
3683
3683
Ok ( ReestablishResponses {
3684
- funding_locked, shutdown ,
3684
+ funding_locked, shutdown_msg ,
3685
3685
raa : required_revoke,
3686
3686
commitment_update : Some ( self . get_last_commitment_update ( logger) ) ,
3687
3687
order : self . resend_order . clone ( ) ,
0 commit comments