Merge pull request #6847 from ellemouton/defaultCaseForAddrType

rpcserver+docs: add default case to addr type switch
This commit is contained in:
Oliver Gugger authored and GitHub committed 2022-08-22 19:25:14 +02:00
commit 5933d66436
2 files changed
+6

No files matched your search

@@ -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
View File
@@ -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,