@@ -20,7 +20,7 @@ use crate::chain::transaction::OutPoint;
2020use crate :: chain:: { ChannelMonitorUpdateStatus , Listen , Watch } ;
2121use crate :: events:: { Event , MessageSendEvent , MessageSendEventsProvider , PaymentPurpose , ClosureReason , HTLCDestination } ;
2222use crate :: ln:: channelmanager:: { RAACommitmentOrder , PaymentSendFailure , PaymentId , RecipientOnionFields } ;
23- use crate :: ln:: channel:: { AnnouncementSigsState , ChannelPhase } ;
23+ use crate :: ln:: channel:: AnnouncementSigsState ;
2424use crate :: ln:: msgs;
2525use crate :: ln:: types:: ChannelId ;
2626use crate :: ln:: msgs:: { ChannelMessageHandler , RoutingMessageHandler } ;
@@ -98,7 +98,7 @@ fn test_monitor_and_persister_update_fail() {
9898 {
9999 let mut node_0_per_peer_lock;
100100 let mut node_0_peer_state_lock;
101- if let ChannelPhase :: Funded ( ref mut channel) = get_channel_ref ! ( nodes[ 0 ] , nodes[ 1 ] , node_0_per_peer_lock, node_0_peer_state_lock, chan. 2 ) {
101+ if let Some ( channel) = get_channel_ref ! ( nodes[ 0 ] , nodes[ 1 ] , node_0_per_peer_lock, node_0_peer_state_lock, chan. 2 ) . as_funded_mut ( ) {
102102 if let Ok ( Some ( update) ) = channel. commitment_signed ( & updates. commitment_signed , & node_cfgs[ 0 ] . logger ) {
103103 // Check that the persister returns InProgress (and will never actually complete)
104104 // as the monitor update errors.
0 commit comments