Merge pull request #5351 from wpaulino/signet-bitcoind
config+chainreg: fix default rpc params for signet bitcoind
This commit is contained in:
commit
aa5c844633
@ -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 {
|
||||
|
@ -1756,7 +1756,7 @@ func extractBitcoindRPCParams(networkName string,
|
||||
switch networkName {
|
||||
case "mainnet":
|
||||
chainDir = ""
|
||||
case "regtest", "testnet3":
|
||||
case "regtest", "testnet3", "signet":
|
||||
chainDir = networkName
|
||||
default:
|
||||
return "", "", "", "", fmt.Errorf("unexpected networkname %v", networkName)
|
||||
|
Loading…
Reference in New Issue
Block a user