mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-03 20:16:02 +02:00
lnrpc/watchtowerrpc: prevent watchtowerrpc panic when tower not active
This commit is contained in:
committed by
Conner Fromknecht
parent
36983214e8
commit
f727b94e12
@ -216,6 +216,9 @@ func (s *subRPCServerConfigs) PopulateDependencies(cc *chainControl,
|
||||
case *watchtowerrpc.Config:
|
||||
subCfgValue := extractReflectValue(subCfg)
|
||||
|
||||
subCfgValue.FieldByName("Active").Set(
|
||||
reflect.ValueOf(tower != nil),
|
||||
)
|
||||
subCfgValue.FieldByName("Tower").Set(
|
||||
reflect.ValueOf(tower),
|
||||
)
|
||||
|
Reference in New Issue
Block a user