fix: properly set custom rpc port for bitcoin-like testnets
The options addnode, connect, port, bind, rpcport, rpcbind and wallet only apply to mainnet unless they appear in the appropriate network section.
This commit is contained in:
parent
cb9ce9363b
commit
15f6bd5b37
@ -5,7 +5,7 @@ server=1
|
||||
nolisten=1
|
||||
rpcuser={{.IPC.RPCUser}}
|
||||
rpcpassword={{.IPC.RPCPass}}
|
||||
rpcport={{.Ports.BackendRPC}}
|
||||
{{if .Backend.Mainnet}}rpcport={{.Ports.BackendRPC}}{{end}}
|
||||
txindex=1
|
||||
|
||||
zmqpubhashtx={{template "IPC.MessageQueueBindingTemplate" .}}
|
||||
@ -27,4 +27,10 @@ addnode={{$node}}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
|
||||
{{if not .Backend.Mainnet}}
|
||||
[test]
|
||||
rpcport={{.Ports.BackendRPC}}
|
||||
{{end}}
|
||||
|
||||
{{end}}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user