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 @@ -1246,6 +1246,9 @@ impl<ChanSigner: ChannelKeys> ChannelMonitor<ChanSigner> {
1246
1246
} ;
1247
1247
onchain_tx_handler. provide_latest_holder_tx ( initial_holder_commitment_tx) ;
1248
1248
1249
+ let mut outputs_to_watch = HashMap :: new ( ) ;
1250
+ outputs_to_watch. insert ( funding_info. 0 . txid , vec ! [ funding_info. 1 . clone( ) ] ) ;
1251
+
1249
1252
ChannelMonitor {
1250
1253
latest_update_id : 0 ,
1251
1254
commitment_transaction_number_obscure_factor,
@@ -1282,7 +1285,7 @@ impl<ChanSigner: ChannelKeys> ChannelMonitor<ChanSigner> {
1282
1285
pending_events : Vec :: new ( ) ,
1283
1286
1284
1287
onchain_events_waiting_threshold_conf : HashMap :: new ( ) ,
1285
- outputs_to_watch : HashMap :: new ( ) ,
1288
+ outputs_to_watch,
1286
1289
1287
1290
onchain_tx_handler,
1288
1291
You can’t perform that action at this time.
0 commit comments