@@ -471,6 +471,9 @@ pub(crate) enum ChannelMonitorUpdateStep {
471
471
ShutdownScript {
472
472
scriptpubkey : Script ,
473
473
} ,
474
+ Counterparty {
475
+ counterparty_node_id : PublicKey ,
476
+ }
474
477
}
475
478
476
479
impl ChannelMonitorUpdateStep {
@@ -482,6 +485,7 @@ impl ChannelMonitorUpdateStep {
482
485
ChannelMonitorUpdateStep :: CommitmentSecret { .. } => "CommitmentSecret" ,
483
486
ChannelMonitorUpdateStep :: ChannelForceClosed { .. } => "ChannelForceClosed" ,
484
487
ChannelMonitorUpdateStep :: ShutdownScript { .. } => "ShutdownScript" ,
488
+ ChannelMonitorUpdateStep :: Counterparty { .. } => "Counterparty" ,
485
489
}
486
490
}
487
491
}
@@ -510,6 +514,9 @@ impl_writeable_tlv_based_enum_upgradable!(ChannelMonitorUpdateStep,
510
514
( 5 , ShutdownScript ) => {
511
515
( 0 , scriptpubkey, required) ,
512
516
} ,
517
+ ( 6 , Counterparty ) => {
518
+ ( 0 , counterparty_node_id, required)
519
+ }
513
520
) ;
514
521
515
522
/// Details about the balance(s) available for spending once the channel appears on chain.
@@ -2005,6 +2012,9 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
2005
2012
panic ! ( "Attempted to replace shutdown script {} with {}" , shutdown_script, scriptpubkey) ;
2006
2013
}
2007
2014
} ,
2015
+ ChannelMonitorUpdateStep :: Counterparty { counterparty_node_id } => {
2016
+ log_trace ! ( logger, "Updating ChannelMonitor with counterparty_node_id {}" , counterparty_node_id) ;
2017
+ }
2008
2018
}
2009
2019
}
2010
2020
self . latest_update_id = updates. update_id ;
0 commit comments