Skip to content

Commit 56dc324

Browse files
committed
fix: differentiate chipnet and testnet node names in helm chart
1 parent 1c2eff8 commit 56dc324

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.github/CONTRIBUTING.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@ Please also join us on the [`Chaingraph Dev` Telegram chat group](https://t.me/c
88

99
Chaingraph uses the [Yarn package manager's zero-installs](https://yarnpkg.com/features/zero-installs) philosophy. First, ensure you have [Node.js](https://nodejs.org/en/) and [Yarn](https://yarnpkg.com/) installed, then recursively clone the repo:
1010

11-
```
11+
```sh
1212
git clone --recursive https://github.com/bitauth/chaingraph.git
1313
cd chaingraph
14+
15+
# later, to pull dependency updates:
16+
git pull --recurse-submodules
17+
# or to pull only the submodules:
18+
git submodule update --recursive
1419
```
1520

1621
Note that it is not necessary to run `yarn install` – all of [Chaingraph's dependencies are tracked in an independent git repository](https://github.com/bitauth/chaingraph-dependencies), and the dependency repo is automatically shallow-cloned into the `.yarn` directory.

charts/chaingraph/templates/_helpers.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ ALTER SYSTEM SET max_parallel_maintenance_workers = '{{ max 1 (div .Values.postg
5252
{{- $trustedNodes = append $trustedNodes .Values.agent.externalNodes -}}
5353
{{- end -}}
5454
{{- if .Values.bitcoinCashNode.enable -}}
55-
{{- $trustedNodes = append $trustedNodes (print "bchn:bitcoin-cash-node-service." .Release.Namespace ".svc.cluster.local:8333:mainnet") -}}
55+
{{- $trustedNodes = append $trustedNodes (print "bchn-mainnet:bitcoin-cash-node-service." .Release.Namespace ".svc.cluster.local:8333:mainnet") -}}
5656
{{- end -}}
5757
{{- if .Values.bitcoinCashNodeTestnet.enable -}}
58-
{{- $trustedNodes = append $trustedNodes (print "tbchn:bitcoin-cash-node-testnet-service." .Release.Namespace ".svc.cluster.local:28333:testnet") -}}
58+
{{- $trustedNodes = append $trustedNodes (print "bchn-testnet:bitcoin-cash-node-testnet-service." .Release.Namespace ".svc.cluster.local:28333:testnet") -}}
5959
{{- end -}}
6060
{{- if .Values.bitcoinCashNodeChipnet.enable -}}
61-
{{- $trustedNodes = append $trustedNodes (print "tbchn:bitcoin-cash-node-chipnet-service." .Release.Namespace ".svc.cluster.local:48333:chipnet") -}}
61+
{{- $trustedNodes = append $trustedNodes (print "bchn-chipnet:bitcoin-cash-node-chipnet-service." .Release.Namespace ".svc.cluster.local:48333:chipnet") -}}
6262
{{- end -}}
6363
{{- $trustedNodes | join "," | trimPrefix "PLACEHOLDER," -}}
6464
{{- end }}

charts/chaingraph/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ bitcoinCashNode:
4040
# The precise Bitcoin Cash Node Docker image to use.
4141
image: chaingraph/bitcoin-cash-node@sha256:133f1ac65126e2637ee544e1190a293c880f035f18042c25e2f1369be30f57b8 # v26.0.0
4242
# The size of the volume to provision for Bitcoin Cash Node.
43-
volumeSize: 210Gi
43+
volumeSize: 250Gi
4444

4545
# Configuration settings for the built-in Bitcoin Cash Node (Testnet4)
4646
bitcoinCashNodeTestnet:

defaults.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ CHAINGRAPH_GENESIS_BLOCKS=e3e1f3e8:010000000000000000000000000000000000000000000
2323

2424
# A list of trusted nodes to which this Chaingraph instance should connect.
2525
# Format: `NODE_NAME:IP_ADDRESS:PORT_NUMBER:NETWORK` comma separated. NETWORK may be provided as `mainnet` (0xe3e1f3e8), `testnet`/`testnet4`/`chipnet` (0xe2b7daaf), or 4 hex-encoded "magic bytes", e.g. `e3e1f3e8`.
26-
# E.g. CHAINGRAPH_TRUSTED_NODES=bchn:127.0.0.1:8333:mainnet,bchd:127.0.0.1:8334:mainnet,another:127.0.0.1:8335:e3e1f3e8
26+
# E.g. CHAINGRAPH_TRUSTED_NODES=bchn-mainnet:127.0.0.1:8333:mainnet,verde-mainnet:127.0.0.1:8334:mainnet,another-mainnet:127.0.0.1:8335:e3e1f3e8
2727
CHAINGRAPH_TRUSTED_NODES=bchn-testnet:127.0.0.1:28333:testnet4,bchn-chipnet:127.0.0.1:48333:chipnet
2828

2929
# User-Agent string to share with trusted nodes. If not set, the default `/chaingraph:[version]/` will be used.

0 commit comments

Comments
 (0)