chainreg: handle missing case for bitcoind signet rpc connectivity

This allows lnd to connect to bitcoind's expected signet RPC port.
This commit is contained in:
Wilmer Paulino 2021-06-01 16:21:31 -07:00
parent b213402722
commit 0bd6f32867
No known key found for this signature in database
GPG Key ID: 6DF57B9F9514972F

@ -378,8 +378,10 @@ func NewChainControl(cfg *Config, blockCache *blockcache.BlockCache) (
rpcPort -= 2
bitcoindHost = fmt.Sprintf("%v:%d",
bitcoindMode.RPCHost, rpcPort)
if (cfg.Bitcoin.Active && cfg.Bitcoin.RegTest) ||
if (cfg.Bitcoin.Active &&
(cfg.Bitcoin.RegTest || cfg.Bitcoin.SigNet)) ||
(cfg.Litecoin.Active && cfg.Litecoin.RegTest) {
conn, err := net.Dial("tcp", bitcoindHost)
if err != nil || conn == nil {
switch {