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
|
rpcPort -= 2
|
||||||
bitcoindHost = fmt.Sprintf("%v:%d",
|
bitcoindHost = fmt.Sprintf("%v:%d",
|
||||||
bitcoindMode.RPCHost, rpcPort)
|
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) {
|
(cfg.Litecoin.Active && cfg.Litecoin.RegTest) {
|
||||||
|
|
||||||
conn, err := net.Dial("tcp", bitcoindHost)
|
conn, err := net.Dial("tcp", bitcoindHost)
|
||||||
if err != nil || conn == nil {
|
if err != nil || conn == nil {
|
||||||
switch {
|
switch {
|
||||||
|
Loading…
Reference in New Issue
Block a user