File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,14 @@ type FullyResolvedChannelEvent struct {
80
80
ChannelPoint * wire.OutPoint
81
81
}
82
82
83
+ // FundingTimeoutEvent represents a new event where a pending-open channel has
84
+ // timed out from the PoV of the funding manager because the funding tx
85
+ // has not confirmed in the allotted time.
86
+ type FundingTimeoutEvent struct {
87
+ // ChannelPoint is the channelpoint for the newly inactive channel.
88
+ ChannelPoint * wire.OutPoint
89
+ }
90
+
83
91
// New creates a new channel notifier. The ChannelNotifier gets channel
84
92
// events from peers and from the chain arbitrator, and dispatches them to
85
93
// its clients.
@@ -184,6 +192,16 @@ func (c *ChannelNotifier) NotifyFullyResolvedChannelEvent(
184
192
}
185
193
}
186
194
195
+ // NotifyFundingTimeoutEvent notifies the channelEventNotifier goroutine that
196
+ // a funding timeout has occurred for a certain channel point.
197
+ func (c * ChannelNotifier ) NotifyFundingTimeout (chanPoint wire.OutPoint ) {
198
+ // Send this event to all channel event subscribers.
199
+ event := FundingTimeoutEvent {ChannelPoint : & chanPoint }
200
+ if err := c .ntfnServer .SendUpdate (event ); err != nil {
201
+ log .Warnf ("Unable to send funding timeout update: %v" , err )
202
+ }
203
+ }
204
+
187
205
// NotifyActiveLinkEvent notifies the channelEventNotifier goroutine that a
188
206
// link has been added to the switch.
189
207
func (c * ChannelNotifier ) NotifyActiveLinkEvent (chanPoint wire.OutPoint ) {
You can’t perform that action at this time.
0 commit comments