Skip to content

Commit fad9867

Browse files
Updated images for hashed statefulset manifests and configured pruning to a safe level. Updated spec name to mainnet. Developed zombinet config files for md5 and hashed.
1 parent 56eef87 commit fad9867

File tree

6 files changed

+42
-7
lines changed

6 files changed

+42
-7
lines changed

k8-manifests/hashed-collator-1-statefulset-archive-aws.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
containers:
1919
- name: hashed-collator-1
2020
imagePullPolicy: IfNotPresent
21-
image: sebastianmontero/hashed-substrate-collator:4a1340fb6befb30c4ee3885087ecb7f47768fd59
21+
image: sebastianmontero/hashed-substrate-collator-hashed:56eef87e580bc0cbe3e0617f204a2ef3257ab9d6
2222
command: ["/var/www/hashed-substrate/scripts/start_collator.sh"]
2323
args: ["hashed", "/var/www/hashed/hashed"]
2424
volumeMounts:

k8-manifests/hashed-collator-2-statefulset.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
containers:
1919
- name: hashed-collator-2
2020
imagePullPolicy: IfNotPresent
21-
image: sebastianmontero/hashed-substrate-collator:29695a7900625e48a7733280fd5461a42a9b7812
21+
image: sebastianmontero/hashed-substrate-collator-hashed:56eef87e580bc0cbe3e0617f204a2ef3257ab9d6
2222
command: ["/var/www/hashed-substrate/scripts/start_collator.sh"]
2323
args: ["hashed", "/var/www/hashed/hashed"]
2424
volumeMounts:
@@ -31,6 +31,8 @@ spec:
3131
value: "/ip4/0.0.0.0/tcp/40333/ws"
3232
- name: PUBLIC_ADDR
3333
value: "/dns/c2.p2p.hashed.network/tcp/443/wss"
34+
- name: RELAY_PRUNING
35+
value: "1000"
3436
# - name: RUST_LOG
3537
# value: "sub-libp2p=trace"
3638
# value: "db=trace,sync=trace"

k8-manifests/hashed-collator-3-statefulset-aws.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
containers:
1919
- name: hashed-collator-3
2020
imagePullPolicy: IfNotPresent
21-
image: sebastianmontero/hashed-substrate-collator:29695a7900625e48a7733280fd5461a42a9b7812
21+
image: sebastianmontero/hashed-substrate-collator-hashed:56eef87e580bc0cbe3e0617f204a2ef3257ab9d6
2222
command: ["/var/www/hashed-substrate/scripts/start_collator.sh"]
2323
args: ["hashed", "/var/www/hashed/hashed"]
2424
volumeMounts:
@@ -31,6 +31,8 @@ spec:
3131
value: "/ip4/0.0.0.0/tcp/40333/ws"
3232
- name: PUBLIC_ADDR
3333
value: "/dns/c3.p2p.hashed.live/tcp/443/wss"
34+
- name: RELAY_PRUNING
35+
value: "1000"
3436
# - name: RUST_LOG
3537
# value: "sub-libp2p=trace"
3638
# - name: RUST_LOG

runtime/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@ impl_opaque_keys! {
225225

226226
#[sp_version::runtime_version]
227227
pub const VERSION: RuntimeVersion = RuntimeVersion {
228-
// spec_name: create_runtime_str!("luhn"), //for the mainnetwork it can not be changed
229-
// impl_name: create_runtime_str!("luhn"),
230-
spec_name: create_runtime_str!("hashed"), // for md5 rococo
231-
impl_name: create_runtime_str!("hashed"),
228+
spec_name: create_runtime_str!("luhn"), //for the mainnetwork it can not be changed
229+
impl_name: create_runtime_str!("luhn"),
230+
// spec_name: create_runtime_str!("hashed"), // for md5 rococo
231+
// impl_name: create_runtime_str!("hashed"),
232232
authoring_version: 3,
233233
spec_version: 3,
234234
impl_version: 3,

zombienet/small_network_hashed.toml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# HOW TO RUN: zombienet-linux-x64 spawn --provider native small_network.toml
2+
[relaychain]
3+
default_image = "parity/polkadot:latest"
4+
default_command = "polkadot"
5+
chain = "rococo-local"
6+
7+
[[relaychain.nodes]]
8+
name = "alice"
9+
validator = true
10+
11+
[[relaychain.nodes]]
12+
name = "bob"
13+
validator = true
14+
15+
[[parachains]]
16+
id = 2093
17+
cumulus_based = true
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/hashed-collator-raw-spec.json"
21+
22+
# run charlie as parachain collator
23+
[[parachains.collators]]
24+
name = "charlie"
25+
validator = true
26+
# image = "sebastianmontero/hashed-substrate-collator:latest"
27+
command = "../target/release/hashed-parachain"
28+
args = ["-lparachain=debug"]
29+
# args = ["--force-authoring"]
30+
# 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"]
File renamed without changes.

0 commit comments

Comments
 (0)