Skip to content

Commit 56eef87

Browse files
Developed md5 statefulset manifests to support the indication of parachain debugging level. Updated md5 collator 2 statefulset manifest to match collator 1. Fixed issue in the zombinet config file related to the parachainId. Developed md5 chain spec for local testnet.
1 parent da13ebb commit 56eef87

9 files changed

+460
-8
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@
1818
.DS_Store
1919
.idea
2020
.vscode
21+
22+
23+
/data-tests

k8-manifests/md5-collator-1-statefulset-aws.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
containers:
1919
- name: md5-collator-1
2020
imagePullPolicy: IfNotPresent
21-
image: sebastianmontero/hashed-substrate-collator:4f5ad5c7b1644614512de9cc287221edad0d38f9
21+
image: sebastianmontero/hashed-substrate-collator-md5:da13ebb0abb495d17969f430906eb8dcc27cfb50
2222
command: ["/var/www/hashed-substrate/scripts/start_collator.sh"]
2323
args: ["md5", "/var/www/hashed/hashed"]
2424
volumeMounts:
@@ -34,7 +34,9 @@ spec:
3434
# - name: RUST_LOG
3535
# value: "debug"
3636
# - name: RUST_LOG
37-
# value: "sub-libp2p=trace"
37+
# value: "sub-libp2p=trace"-lparachain=debug
38+
# - name: RUST_LOG
39+
# value: "lparachain=debug"
3840
# - name: RUST_LOG
3941
# value: "db=trace,sync=trace,sub-libp2p=trace"
4042
# - name: NODEKEY

k8-manifests/md5-collator-2-statefulset-aws.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
containers:
1919
- name: md5-collator-2
2020
imagePullPolicy: IfNotPresent
21-
image: sebastianmontero/hashed-substrate-collator:3e17bdf232a041ad7914a678e28b85983b1f4647
21+
image: sebastianmontero/hashed-substrate-collator-md5:da13ebb0abb495d17969f430906eb8dcc27cfb50
2222
command: ["/var/www/hashed-substrate/scripts/start_collator.sh"]
2323
args: ["md5", "/var/www/hashed/hashed"]
2424
volumeMounts:
@@ -31,6 +31,10 @@ spec:
3131
value: "/ip4/0.0.0.0/tcp/40333/ws"
3232
- name: PUBLIC_ADDR
3333
value: "/dns/c2.md5.p2p.hashed.live/tcp/443/wss"
34+
- name: RELAY_PRUNING
35+
value: "1000"
36+
# - name: RUST_LOG
37+
# value: "parachain=debug"
3438
# - name: RUST_LOG
3539
# value: "sub-libp2p=trace"
3640
# - name: RUST_LOG
@@ -43,8 +47,8 @@ spec:
4347
# optional: false
4448
resources:
4549
limits:
46-
memory: "8G"
47-
cpu: "2"
50+
memory: "7G"
51+
cpu: "1.5"
4852
# requests:
4953
# ephemeral-storage: 25Gi
5054
ports:
@@ -53,6 +57,8 @@ spec:
5357
- containerPort: 9946
5458
- containerPort: 30333
5559
- containerPort: 40333
60+
nodeSelector:
61+
node.kubernetes.io/instance-type: t3.xlarge
5662
volumeClaimTemplates:
5763
- metadata:
5864
name: md5-collator-2-pvc

plain-parachain-chainspec.json

Lines changed: 160 additions & 0 deletions
Large diffs are not rendered by default.

resources/md5-collator-raw-spec-local-testnet.json

Lines changed: 110 additions & 0 deletions
Large diffs are not rendered by default.

resources/md5-collator-spec-local-testnet.json

Lines changed: 165 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0x000000000000000000000000000000000000000000000000000000000000000000b9b42c2c50a3d01b42991f311bc78710a14bc9e00ff1fa01948429fde3bbea4c03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400

resources/md5-local-testnet-wasm

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

zombienet/small_network.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,19 @@ chain = "rococo-local"
1313
validator = true
1414

1515
[[parachains]]
16-
id = 2000
16+
id = 2093
1717
cumulus_based = true
18-
chain = "md5"
18+
# chain = "md5"
19+
# genesis_wasm_path = "/home/sebastian/vsc-workspace/hashed-substrate/resources/md5-wasm"
20+
chain_spec_path = "/home/sebastian/vsc-workspace/hashed-substrate-parachain/resources/md5-collator-raw-spec.json"
1921

2022
# run charlie as parachain collator
2123
[[parachains.collators]]
2224
name = "charlie"
2325
validator = true
2426
# image = "sebastianmontero/hashed-substrate-collator:latest"
2527
command = "../target/release/hashed-parachain"
26-
args = ["--force-authoring"]
28+
args = ["-lparachain=debug"]
29+
# args = ["--force-authoring"]
2730
# args = ["--chain", "/var/www/hashed-substrate/md5-collator-raw-spec.json", "--force-authoring"]
31+
# args = ["--chain", "/var/www/hashed-substrate/md5-collator-raw-spec.json"]

0 commit comments

Comments
 (0)