Skip to content

Commit

Permalink
Merge branch 'v0.15.1-beta-6847' into v0.15.1-branch-rc2
Browse files Browse the repository at this point in the history
Roasbeef committed Aug 22, 2022
2 parents 29ac0e1 + 7324256 commit e5e20a7
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/release-notes/release-notes-0.15.1.md
Original file line number Diff line number Diff line change
@@ -164,6 +164,9 @@ default](https://github.com/lightningnetwork/lnd/pull/6810) in most cases.
* [Remove `ScidAliasOptional` dependency on
`ExplicitChannelTypeOptional`](https://github.com/lightningnetwork/lnd/pull/6809)

* [Add a default case](https://github.com/lightningnetwork/lnd/pull/6847) to the
Address Type switch statement in the `NewAddress` rpc server method.

## Code Health

### Code cleanup, refactor, typo fixes
3 changes: 3 additions & 0 deletions rpcserver.go
Original file line number Diff line number Diff line change
@@ -1542,6 +1542,9 @@ func (r *rpcServer) NewAddress(ctx context.Context,
if err != nil {
return nil, err
}

default:
return nil, fmt.Errorf("unknown address type: %v", in.Type)
}

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

0 comments on commit e5e20a7

Please sign in to comment.