|
18 | 18 | let secret = key: ''{{ with secret "${key}" }}{{.Data.data.value}}{{end}}''; |
19 | 19 | in [ |
20 | 20 | { |
| 21 | + # FIXME: pow-target-time was only temporarily changed here, should be included on the default testnet-internal on next version of mantis |
21 | 22 | data = '' |
22 | 23 | include "${mantis}/conf/testnet-internal.conf" |
23 | 24 |
|
|
43 | 44 | mantis.network.rpc.http.port = {{ env "NOMAD_PORT_rpc" }} |
44 | 45 | mantis.network.server-address.port = {{ env "NOMAD_PORT_server" }} |
45 | 46 | mantis.blockchains.testnet-internal.custom-genesis-file = "{{ env "NOMAD_TASK_DIR" }}/genesis.json" |
| 47 | +
|
| 48 | + mantis.blockchains.testnet-internal.pow-target-time = 30 seconds |
46 | 49 | ''; |
47 | 50 | destination = "local/mantis.conf"; |
48 | 51 | changeMode = "noop"; |
|
273 | 276 |
|
274 | 277 | templates = [ |
275 | 278 | { |
| 279 | + # FIXME: pow-target-time was only temporarily changed here, should be included on the default testnet-internal on next version of mantis |
276 | 280 | data = '' |
277 | 281 | include "${mantis}/conf/testnet-internal.conf" |
278 | 282 |
|
|
297 | 301 | mantis.network.rpc.http.port = {{ env "NOMAD_PORT_rpc" }} |
298 | 302 | mantis.network.server-address.port = {{ env "NOMAD_PORT_server" }} |
299 | 303 | mantis.blockchains.testnet-internal.custom-genesis-file = "{{ env "NOMAD_TASK_DIR" }}/genesis.json" |
| 304 | +
|
| 305 | + mantis.blockchains.testnet-internal.pow-target-time = 30 seconds |
300 | 306 | ''; |
301 | 307 | changeMode = "restart"; |
302 | 308 | destination = "local/mantis.conf"; |
@@ -503,16 +509,13 @@ let |
503 | 509 | in [ |
504 | 510 | { |
505 | 511 | data = '' |
506 | | - include "${mantis-faucet}/conf/testnet-internal.conf" |
507 | | - mantis.blockchains.testnet-internal.custom-genesis-file = "{{ env "NOMAD_TASK_DIR" }}/genesis.json" |
508 | | -
|
509 | 512 | faucet { |
510 | 513 | # Base directory where all the data used by the faucet is stored |
511 | 514 | datadir = "/local/mantis-faucet" |
512 | 515 |
|
513 | 516 | # Wallet address used to send transactions from |
514 | 517 | wallet-address = |
515 | | - {{- with secret "kv/nomad-cluster/${namespace}/${namespace}-mantis-1/coinbase" -}} |
| 518 | + {{- with secret "kv/nomad-cluster/${namespace}/mantis-1/coinbase" -}} |
516 | 519 | "{{.Data.data.value}}" |
517 | 520 | {{- end }} |
518 | 521 |
|
@@ -601,34 +604,22 @@ let |
601 | 604 | } |
602 | 605 | } |
603 | 606 | } |
604 | | -
|
605 | | - mantis.blockchains.testnet-internal.bootstrap-nodes = [ |
606 | | - {{ range service "${namespace}-mantis-miner" -}} |
607 | | - "enode:// {{- with secret (printf "kv/data/nomad-cluster/${namespace}/%s/enode-hash" .ServiceMeta.Name) -}} |
608 | | - {{- .Data.data.value -}} |
609 | | - {{- end -}}@{{ .Address }}:{{ .Port }}", |
610 | | - {{ end -}} |
611 | | - ] |
612 | | -
|
613 | | - mantis.client-id = "${faucetName}" |
614 | | - mantis.metrics.enabled = true |
615 | | - mantis.metrics.port = {{ env "NOMAD_PORT_metrics" }} |
616 | 607 | ''; |
617 | 608 | changeMode = "noop"; |
618 | 609 | destination = "local/faucet.conf"; |
619 | 610 | } |
620 | 611 | genesisJson |
621 | 612 | { |
622 | 613 | data = '' |
623 | | - {{- with secret "kv/data/nomad-cluster/${namespace}/${namespace}-mantis-1/account" -}} |
| 614 | + {{- with secret "kv/data/nomad-cluster/${namespace}/mantis-1/account" -}} |
624 | 615 | {{.Data.data | toJSON }} |
625 | 616 | {{- end -}} |
626 | 617 | ''; |
627 | 618 | destination = "secrets/account"; |
628 | 619 | } |
629 | 620 | { |
630 | 621 | data = '' |
631 | | - COINBASE={{- with secret "kv/data/nomad-cluster/${namespace}/${namespace}-mantis-1/coinbase" -}}{{ .Data.data.value }}{{- end -}} |
| 622 | + COINBASE={{- with secret "kv/data/nomad-cluster/${namespace}/mantis-1/coinbase" -}}{{ .Data.data.value }}{{- end -}} |
632 | 623 | ''; |
633 | 624 | destination = "secrets/env"; |
634 | 625 | env = true; |
|
0 commit comments