Skip to content

Commit a839456

Browse files
authored
Merge pull request #10082 from lightningnetwork/0-19-2-final
release: create v0.19.2-beta final version
2 parents e4465da + 9e05235 commit a839456

File tree

7 files changed

+2148
-2096
lines changed

7 files changed

+2148
-2096
lines changed

build/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const (
5151

5252
// AppPreRelease MUST only contain characters from semanticAlphabet per
5353
// the semantic versioning spec.
54-
AppPreRelease = "beta.rc2"
54+
AppPreRelease = "beta"
5555
)
5656

5757
func init() {

channelnotifier/channelnotifier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func (c *ChannelNotifier) NotifyFullyResolvedChannelEvent(
192192
}
193193
}
194194

195-
// NotifyFundingTimeoutEvent notifies the channelEventNotifier goroutine that
195+
// NotifyFundingTimeout notifies the channelEventNotifier goroutine that
196196
// a funding timeout has occurred for a certain channel point.
197197
func (c *ChannelNotifier) NotifyFundingTimeout(chanPoint wire.OutPoint) {
198198
// Send this event to all channel event subscribers.

docs/release-notes/release-notes-0.19.2.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@
5252
- Fixed [shutdown deadlock](https://github.com/lightningnetwork/lnd/pull/10042)
5353
when we fail starting up LND before we startup the chanbackup sub-server.
5454

55+
- [Added the missing `FundingTimeoutEvent` event type to the
56+
`SubscribeChannelEvents`
57+
RPC](https://github.com/lightningnetwork/lnd/pull/10079) to avoid the
58+
`unexpected channel event update` error that lead to the termination of the
59+
streaming RPC call.
60+
5561
# New Features
5662

5763
## Functional Enhancements

lnrpc/lightning.pb.go

Lines changed: 2119 additions & 2093 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lnrpc/lightning.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2980,6 +2980,7 @@ message ChannelEventUpdate {
29802980
ChannelPoint inactive_channel = 4;
29812981
PendingUpdate pending_open_channel = 6;
29822982
ChannelPoint fully_resolved_channel = 7;
2983+
ChannelPoint channel_funding_timeout = 8;
29832984
}
29842985

29852986
enum UpdateType {
@@ -2989,6 +2990,7 @@ message ChannelEventUpdate {
29892990
INACTIVE_CHANNEL = 3;
29902991
PENDING_OPEN_CHANNEL = 4;
29912992
FULLY_RESOLVED_CHANNEL = 5;
2993+
CHANNEL_FUNDING_TIMEOUT = 6;
29922994
}
29932995

29942996
UpdateType type = 5;

lnrpc/lightning.swagger.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2988,7 +2988,8 @@
29882988
"ACTIVE_CHANNEL",
29892989
"INACTIVE_CHANNEL",
29902990
"PENDING_OPEN_CHANNEL",
2991-
"FULLY_RESOLVED_CHANNEL"
2991+
"FULLY_RESOLVED_CHANNEL",
2992+
"CHANNEL_FUNDING_TIMEOUT"
29922993
],
29932994
"default": "OPEN_CHANNEL"
29942995
},
@@ -4421,6 +4422,9 @@
44214422
"fully_resolved_channel": {
44224423
"$ref": "#/definitions/lnrpcChannelPoint"
44234424
},
4425+
"channel_funding_timeout": {
4426+
"$ref": "#/definitions/lnrpcChannelPoint"
4427+
},
44244428
"type": {
44254429
"$ref": "#/definitions/ChannelEventUpdateUpdateType"
44264430
}

rpcserver.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5289,6 +5289,7 @@ func (r *rpcServer) SubscribeChannelEvents(req *lnrpc.ChannelEventSubscription,
52895289
defer channelEventSub.Cancel()
52905290

52915291
for {
5292+
//nolint:ll
52925293
select {
52935294
// A new update has been sent by the channel router, we'll
52945295
// marshal it into the form expected by the gRPC client, then
@@ -5383,6 +5384,19 @@ func (r *rpcServer) SubscribeChannelEvents(req *lnrpc.ChannelEventSubscription,
53835384
},
53845385
}
53855386

5387+
case channelnotifier.FundingTimeoutEvent:
5388+
update = &lnrpc.ChannelEventUpdate{
5389+
Type: lnrpc.ChannelEventUpdate_CHANNEL_FUNDING_TIMEOUT,
5390+
Channel: &lnrpc.ChannelEventUpdate_ChannelFundingTimeout{
5391+
ChannelFundingTimeout: &lnrpc.ChannelPoint{
5392+
FundingTxid: &lnrpc.ChannelPoint_FundingTxidBytes{
5393+
FundingTxidBytes: event.ChannelPoint.Hash[:],
5394+
},
5395+
OutputIndex: event.ChannelPoint.Index,
5396+
},
5397+
},
5398+
}
5399+
53865400
default:
53875401
return fmt.Errorf("unexpected channel event update: %v", event)
53885402
}

0 commit comments

Comments
 (0)