File tree Expand file tree Collapse file tree 5 files changed +27
-15
lines changed
resources/charts/bitcoincore Expand file tree Collapse file tree 5 files changed +27
-15
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,10 @@ Create the name of the service account to use
60
60
{ {/*
61
61
Add network section heading in bitcoin.conf after v0.17.0
62
62
*/} }
63
- { {- define " bitcoincore.check_semver.regtest " -} }
63
+ { {- define " bitcoincore.check_semver" -} }
64
64
{ {- $tag := .Values.image.tag | trimPrefix " v" -} }
65
65
{ {- $version := semverCompare " >=0.17.0" $tag -} }
66
66
{ {- if $version -} }
67
- [regtest ]
67
+ [{ { .Values.chain } } ]
68
68
{ {- end -} }
69
69
{ {- end -} }
Original file line number Diff line number Diff line change @@ -6,12 +6,9 @@ metadata:
6
6
{{- include "bitcoincore.labels" . | nindent 4 }}
7
7
data :
8
8
bitcoin.conf : |
9
- {{- if eq .Values.chain "regtest" }}
10
- regtest=1
9
+ {{ .Values.chain }}=1
11
10
12
- {{ template "bitcoincore.check_semver.regtest" . }}
13
- {{- tpl .Values.regtestConfig . | nindent 4 }}
14
- {{- end }}
11
+ {{ template "bitcoincore.check_semver" . }}
15
12
{{- .Values.baseConfig | nindent 4 }}
16
13
{{- .Values.config | nindent 4 }}
17
14
{{- range .Values.connect }}
Original file line number Diff line number Diff line change @@ -112,14 +112,6 @@ collectLogs: false
112
112
metricsExport : false
113
113
prometheusMetricsPort : 9332
114
114
115
- regtestConfig : |
116
- rpcuser=user
117
- rpcpassword=password
118
- rpcport=18443
119
- rpcallowip=0.0.0.0/0
120
- rpcbind=0.0.0.0
121
- rest=1
122
-
123
115
baseConfig : |
124
116
checkmempool=0
125
117
acceptnonstdtxn=1
@@ -133,6 +125,15 @@ baseConfig: |
133
125
zmqpubrawblock=tcp://0.0.0.0:28332
134
126
zmqpubrawtx=tcp://0.0.0.0:28333
135
127
128
+ rpcuser=user
129
+ rpcpassword=password
130
+ # use regtest port by default for all networks
131
+ rpcport=18443
132
+ rpcallowip=0.0.0.0/0
133
+ rpcbind=0.0.0.0
134
+ rest=1
135
+
136
+
136
137
config : " "
137
138
138
139
connect : []
Original file line number Diff line number Diff line change
1
+ nodes :
2
+ - name : miner
3
+ - name : tank-0001
4
+ connect :
5
+ - miner
6
+ - name : tank-0002
7
+ connect :
8
+ - miner
Original file line number Diff line number Diff line change
1
+ image :
2
+ repository : bitcoindevproject/bitcoin
3
+ pullPolicy : IfNotPresent
4
+ tag : " 27.0"
5
+
6
+ chain : signet
You can’t perform that action at this time.
0 commit comments