File tree Expand file tree Collapse file tree 14 files changed +56
-65
lines changed
admin/networks/6_node_bitcoin Expand file tree Collapse file tree 14 files changed +56
-65
lines changed Original file line number Diff line number Diff line change 1616 zmqpubrawtx=tcp://0.0.0.0:{{ .Values.ZMQTxPort }}
1717 {{- .Values.defaultConfig | nindent 4 }}
1818 {{- .Values.config | nindent 4 }}
19- {{- range .Values.connect }}
20- {{- print "connect =" . | nindent 4}}
21- {{- end }}
19+ {{- range .Values.addnode }}
20+ {{- print "addnode =" . | nindent 4}}
21+ {{- end }}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ metadata:
1515 collect_logs : " true"
1616 {{- end }}
1717 annotations :
18- init_peers : " {{ .Values.connect | len }}"
18+ init_peers : " {{ .Values.addnode | len }}"
1919spec :
2020 restartPolicy : " {{ .Values.restartPolicy }}"
2121 {{- with .Values.imagePullSecrets }}
Original file line number Diff line number Diff line change @@ -136,7 +136,8 @@ config: ""
136136
137137defaultConfig : " "
138138
139- connect : []
139+ addnode : []
140+
140141loadSnapshot :
141142 enabled : false
142143 url : " "
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -65,6 +65,4 @@ volumeMounts: []
6565
6666port :
6767
68- warnet : " "
69-
7068args : " "
Original file line number Diff line number Diff line change 33 config : uacomment=tank0001
44 image :
55 tag : " 26.0"
6- connect :
6+ addnode :
77 - tank-0002
88 - tank-0003
99 - name : tank-0002
@@ -15,22 +15,22 @@ nodes:
1515 requests :
1616 cpu : 100m
1717 memory : 128Mi
18- connect :
18+ addnode :
1919 - tank-0003
2020 - tank-0004
2121 - name : tank-0003
2222 config : uacomment=tank0003
23- connect :
23+ addnode :
2424 - tank-0004
2525 - tank-0005
2626 - name : tank-0004
2727 config : uacomment=tank0004
28- connect :
28+ addnode :
2929 - tank-0005
3030 - tank-0006
3131 - name : tank-0005
3232 config : uacomment=tank0005
33- connect :
33+ addnode :
3434 - tank-0006
3535 - name : tank-0006
3636caddy :
Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ def custom_graph(
3838 connections = set ()
3939
4040 for i in range (num_nodes ):
41- node = {"name" : f"tank-{ i :04d} " , "connect " : [], "image" : {"tag" : version }}
41+ node = {"name" : f"tank-{ i :04d} " , "addnode " : [], "image" : {"tag" : version }}
4242
4343 # Add round-robin connection
4444 next_node = (i + 1 ) % num_nodes
45- node ["connect " ].append (f"tank-{ next_node :04d} " )
45+ node ["addnode " ].append (f"tank-{ next_node :04d} " )
4646 connections .add ((i , next_node ))
4747
4848 # Add random connections
@@ -55,7 +55,7 @@ def custom_graph(
5555 random_node = random .choice (available_nodes )
5656 # Avoid circular loops of A -> B -> A
5757 if (random_node , i ) not in connections :
58- node ["connect " ].append (f"tank-{ random_node :04d} " )
58+ node ["addnode " ].append (f"tank-{ random_node :04d} " )
5959 connections .add ((i , random_node ))
6060 available_nodes .remove (random_node )
6161
Original file line number Diff line number Diff line change 11nodes :
22 - name : tank-0000
3- connect :
3+ addnode :
44 - tank-0001
55 config : |
66 debug=rpc
77 debug=validation
88 - name : tank-0001
9- connect :
9+ addnode :
1010 - tank-0002
1111 config : |
1212 debug=net
1313 debug=validation
1414 - name : tank-0002
15- connect :
15+ addnode :
1616 - tank-0003
1717 config : |
1818 debug=validation
1919 - name : tank-0003
20- connect :
20+ addnode :
2121 - tank-0004
2222 config : |
2323 debug=validation
2424 - name : tank-0004
25- connect :
25+ addnode :
2626 - tank-0005
2727 - name : tank-0005
28- connect :
28+ addnode :
2929 - tank-0006
3030 config : |
3131 debug=validation
3232 - name : tank-0006
33- connect :
33+ addnode :
3434 - tank-0007
3535 - name : tank-0007
3636 config : |
3737 debug=validation
38- connect :
38+ addnode :
3939 - tank-0008
4040 config : |
4141 debug=validation
4242 - name : tank-0008
43- connect :
43+ addnode :
4444 - tank-0009
4545 config : |
4646 debug=validation
4747 - name : tank-0009
48- connect :
48+ addnode :
4949 - tank-0010
5050 config : |
5151 debug=validation
5252 - name : tank-0010
53- connect :
53+ addnode :
5454 - tank-0011
5555 config : |
5656 debug=validation
5757 - name : tank-0011
58- connect :
58+ addnode :
5959 - tank-0000
6060 config : |
6161 debug=validation
Original file line number Diff line number Diff line change 22 - name : tank-0001
33 image :
44 tag : " 26.0"
5- connect :
5+ addnode :
66 - tank-0002.wargames-red-team-warnettest.svc.cluster.local
77 - tank-0003.wargames-blue-team-warnettest.svc.cluster.local
88 - name : tank-0002
@@ -13,19 +13,19 @@ nodes:
1313 requests :
1414 cpu : 100m
1515 memory : 128Mi
16- connect :
16+ addnode :
1717 - tank-0003.wargames-red-team-warnettest.svc.cluster.local
1818 - tank-0004.wargames-blue-team-warnettest.svc.cluster.local
1919 - name : tank-0003
20- connect :
20+ addnode :
2121 - tank-0004.wargames-red-team-warnettest.svc.cluster.local
2222 - tank-0005.wargames-blue-team-warnettest.svc.cluster.local
2323 - name : tank-0004
24- connect :
24+ addnode :
2525 - tank-0005.wargames-red-team-warnettest.svc.cluster.local
2626 - tank-0006.wargames-blue-team-warnettest.svc.cluster.local
2727 - name : tank-0005
28- connect :
28+ addnode :
2929 - tank-0006.wargames-red-team-warnettest.svc.cluster.local
3030 - name : tank-0006
3131fork_observer :
Original file line number Diff line number Diff line change 22 - name : tank-0016
33 image :
44 tag : " 0.16.1"
5- connect :
5+ addnode :
66 - tank-0017
77 config :
88 uacomment=tank-0016
99 - name : tank-0017
1010 image :
1111 tag : " 0.17.0"
12- connect :
12+ addnode :
1313 - tank-0019
1414 config :
1515 uacomment=tank-0017
1616 - name : tank-0019
1717 image :
1818 tag : " 0.19.2"
19- connect :
19+ addnode :
2020 - tank-0020
2121 config :
2222 uacomment=tank-0019
2323 - name : tank-0020
2424 image :
2525 tag : " 0.20.0"
26- connect :
26+ addnode :
2727 - tank-0021
2828 config :
2929 uacomment=tank-0020
3030 - name : tank-0021
3131 image :
3232 tag : " 0.21.1"
33- connect :
33+ addnode :
3434 - tank-0024
3535 config :
3636 uacomment=tank-0021
3737 - name : tank-0024
3838 image :
3939 tag : " 24.2"
40- connect :
40+ addnode :
4141 - tank-0025
4242 config :
4343 uacomment=tank-0024
4444 - name : tank-0025
4545 image :
4646 tag : " 25.1"
47- connect :
47+ addnode :
4848 - tank-0026
4949 config :
5050 uacomment=tank-0025
5151 - name : tank-0026
5252 image :
5353 tag : " 26.0"
54- connect :
54+ addnode :
5555 - tank-0027
5656 config :
5757 uacomment=tank-0026
5858 - name : tank-0027
5959 image :
6060 tag : " 27.0"
61- connect :
61+ addnode :
6262 - tank-0016
6363 config :
6464 uacomment=tank-0027
You can’t perform that action at this time.
0 commit comments