mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
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:
parent
b213402722
commit
0bd6f32867
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user