blockbook/build/templates/backend/config/bitcoin_like.conf
Riku 15f6bd5b37 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.
2021-10-22 21:31:22 +02:00

37 lines
769 B
Plaintext

{{define "main" -}}
daemon=1
server=1
{{if .Backend.Mainnet}}mainnet=1{{else}}testnet=1{{end}}
nolisten=1
rpcuser={{.IPC.RPCUser}}
rpcpassword={{.IPC.RPCPass}}
{{if .Backend.Mainnet}}rpcport={{.Ports.BackendRPC}}{{end}}
txindex=1
zmqpubhashtx={{template "IPC.MessageQueueBindingTemplate" .}}
zmqpubhashblock={{template "IPC.MessageQueueBindingTemplate" .}}
rpcworkqueue=1100
maxmempool=2000
dbcache=1000
{{- if .Backend.AdditionalParams}}
# generated from additional_params
{{- range $name, $value := .Backend.AdditionalParams}}
{{- if eq $name "addnode"}}
{{- range $index, $node := $value}}
addnode={{$node}}
{{- end}}
{{- else}}
{{$name}}={{$value}}
{{- end}}
{{- end}}
{{- end}}
{{if not .Backend.Mainnet}}
[test]
rpcport={{.Ports.BackendRPC}}
{{end}}
{{end}}