File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,9 @@ pub trait Watch: Send + Sync {
72
72
/// Watches a channel identified by `funding_txo` using `monitor`.
73
73
///
74
74
/// Implementations are responsible for watching the chain for the funding transaction along
75
- /// with spends of its output and any outputs returned by [`get_outputs_to_watch`]. In practice,
76
- /// this means calling [`block_connected`] and [`block_disconnected`] on the monitor and
77
- /// including all such transactions that meet this criteria.
75
+ /// with any spends of outputs returned by [`get_outputs_to_watch`]. In practice, this means
76
+ /// calling [`block_connected`] and [`block_disconnected`] on the monitor and including all such
77
+ /// transactions that meet this criteria.
78
78
///
79
79
/// [`get_outputs_to_watch`]: ../ln/channelmonitor/struct.ChannelMonitor.html#method.get_outputs_to_watch
80
80
/// [`block_connected`]: ../ln/channelmonitor/struct.ChannelMonitor.html#method.block_connected
Original file line number Diff line number Diff line change @@ -1252,6 +1252,9 @@ impl<ChanSigner: ChannelKeys> ChannelMonitor<ChanSigner> {
1252
1252
} ;
1253
1253
onchain_tx_handler. provide_latest_holder_tx ( initial_holder_commitment_tx) ;
1254
1254
1255
+ let mut outputs_to_watch = HashMap :: new ( ) ;
1256
+ outputs_to_watch. insert ( funding_info. 0 . txid , vec ! [ funding_info. 1 . clone( ) ] ) ;
1257
+
1255
1258
ChannelMonitor {
1256
1259
latest_update_id : 0 ,
1257
1260
commitment_transaction_number_obscure_factor,
@@ -1288,7 +1291,7 @@ impl<ChanSigner: ChannelKeys> ChannelMonitor<ChanSigner> {
1288
1291
pending_events : Vec :: new ( ) ,
1289
1292
1290
1293
onchain_events_waiting_threshold_conf : HashMap :: new ( ) ,
1291
- outputs_to_watch : HashMap :: new ( ) ,
1294
+ outputs_to_watch,
1292
1295
1293
1296
onchain_tx_handler,
1294
1297
You can’t perform that action at this time.
0 commit comments