Skip to content

Commit e5e20a7

Browse files
committed
Merge branch 'v0.15.1-beta-6847' into v0.15.1-branch-rc2
2 parents 29ac0e1 + 7324256 commit e5e20a7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/release-notes/release-notes-0.15.1.md

+3
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ default](https://github.com/lightningnetwork/lnd/pull/6810) in most cases.
164164
* [Remove `ScidAliasOptional` dependency on
165165
`ExplicitChannelTypeOptional`](https://github.com/lightningnetwork/lnd/pull/6809)
166166

167+
* [Add a default case](https://github.com/lightningnetwork/lnd/pull/6847) to the
168+
Address Type switch statement in the `NewAddress` rpc server method.
169+
167170
## Code Health
168171

169172
### Code cleanup, refactor, typo fixes

rpcserver.go

+3
Original file line numberDiff line numberDiff line change
@@ -1542,6 +1542,9 @@ func (r *rpcServer) NewAddress(ctx context.Context,
15421542
if err != nil {
15431543
return nil, err
15441544
}
1545+
1546+
default:
1547+
return nil, fmt.Errorf("unknown address type: %v", in.Type)
15451548
}
15461549

15471550
rpcsLog.Debugf("[newaddress] account=%v type=%v addr=%v", account,

0 commit comments

Comments
 (0)