lnrpc/watchtowerrpc: prevent watchtowerrpc panic when tower not active
This commit is contained in:
1 parent
36983214e8
commit
f727b94e12
3 files changed
+7
-1
No files matched your search
@@ -124,7 +124,7 @@ func (c *Handler) GetInfo(ctx context.Context,
|
||||
// isActive returns nil if the tower backend is initialized, and the Handler can
|
||||
// proccess RPC requests.
|
||||
func (c *Handler) isActive() error {
|
||||
if c.cfg.Tower != nil {
|
||||
if c.cfg.Active {
|
||||
return nil
|
||||
}
|
||||
return ErrTowerNotActive
|
||||
|
||||
Reference in new issue
Block a user