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:
Riku 2021-10-15 17:19:57 +02:00 committed by Martin
parent cb9ce9363b
commit 15f6bd5b37

View File

@ -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}}