Skip to content

Commit 5411a4a

Browse files
authored
feat: add create cluster tests (#325)
* wip: create cluster * feat: create cluster finish some functions * fix create cluster review feedback * fix: review comments * fix: review comments * fix: review comment * feat: add create cluster test * feat: add golden tests * feat: add test validate def * feat: add test split keys * feat: add test target gas limit * feat: add create cluster tests * refactor: split run_test_create_cluster into several functions * fix: review comments
1 parent d1bca2d commit 5411a4a

26 files changed

Lines changed: 1838 additions & 34 deletions

crates/cli/src/commands/create_cluster.rs

Lines changed: 1395 additions & 30 deletions
Large diffs are not rendered by default.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[
2+
"node0",
3+
"node1",
4+
"node2",
5+
"node3",
6+
"node0/charon-enr-private-key",
7+
"node0/cluster-lock.json",
8+
"node0/deposit-data-1eth.json",
9+
"node0/deposit-data.json",
10+
"node0/validator_keys",
11+
"node1/charon-enr-private-key",
12+
"node1/cluster-lock.json",
13+
"node1/deposit-data-1eth.json",
14+
"node1/deposit-data.json",
15+
"node1/validator_keys",
16+
"node2/charon-enr-private-key",
17+
"node2/cluster-lock.json",
18+
"node2/deposit-data-1eth.json",
19+
"node2/deposit-data.json",
20+
"node2/validator_keys",
21+
"node3/charon-enr-private-key",
22+
"node3/cluster-lock.json",
23+
"node3/deposit-data-1eth.json",
24+
"node3/deposit-data.json",
25+
"node3/validator_keys"
26+
]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Created charon cluster:
2+
--split-existing-keys=false
3+
4+
pluto/
5+
├─ node[0-3]/ Directory for each node
6+
│ ├─ charon-enr-private-key Charon networking private key for node authentication
7+
│ ├─ cluster-lock.json Cluster lock defines the cluster lock file which is signed by all nodes
8+
│ ├─ deposit-data-*.json Deposit data files are used to activate a Distributed Validator on the DV Launchpad
9+
│ ├─ validator_keys Validator keystores and password
10+
│ │ ├─ keystore-*.json Validator private share key for duty signing
11+
│ │ ├─ keystore-*.txt Keystore password files for keystore-*.json
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[
2+
"node0",
3+
"node1",
4+
"node2",
5+
"node3",
6+
"node0/charon-enr-private-key",
7+
"node0/cluster-lock.json",
8+
"node0/deposit-data-1eth.json",
9+
"node0/deposit-data.json",
10+
"node0/validator_keys",
11+
"node1/charon-enr-private-key",
12+
"node1/cluster-lock.json",
13+
"node1/deposit-data-1eth.json",
14+
"node1/deposit-data.json",
15+
"node1/validator_keys",
16+
"node2/charon-enr-private-key",
17+
"node2/cluster-lock.json",
18+
"node2/deposit-data-1eth.json",
19+
"node2/deposit-data.json",
20+
"node2/validator_keys",
21+
"node3/charon-enr-private-key",
22+
"node3/cluster-lock.json",
23+
"node3/deposit-data-1eth.json",
24+
"node3/deposit-data.json",
25+
"node3/validator_keys"
26+
]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Created charon cluster:
2+
--split-existing-keys=false
3+
4+
pluto/
5+
├─ node[0-3]/ Directory for each node
6+
│ ├─ charon-enr-private-key Charon networking private key for node authentication
7+
│ ├─ cluster-lock.json Cluster lock defines the cluster lock file which is signed by all nodes
8+
│ ├─ deposit-data-*.json Deposit data files are used to activate a Distributed Validator on the DV Launchpad
9+
│ ├─ validator_keys Validator keystores and password
10+
│ │ ├─ keystore-*.json Validator private share key for duty signing
11+
│ │ ├─ keystore-*.txt Keystore password files for keystore-*.json
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[
2+
"node0",
3+
"node1",
4+
"node2",
5+
"node3",
6+
"node0/charon-enr-private-key",
7+
"node0/cluster-lock.json",
8+
"node0/deposit-data-8eth.json",
9+
"node0/validator_keys",
10+
"node1/charon-enr-private-key",
11+
"node1/cluster-lock.json",
12+
"node1/deposit-data-8eth.json",
13+
"node1/validator_keys",
14+
"node2/charon-enr-private-key",
15+
"node2/cluster-lock.json",
16+
"node2/deposit-data-8eth.json",
17+
"node2/validator_keys",
18+
"node3/charon-enr-private-key",
19+
"node3/cluster-lock.json",
20+
"node3/deposit-data-8eth.json",
21+
"node3/validator_keys"
22+
]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Created charon cluster:
2+
--split-existing-keys=false
3+
4+
pluto/
5+
├─ node[0-3]/ Directory for each node
6+
│ ├─ charon-enr-private-key Charon networking private key for node authentication
7+
│ ├─ cluster-lock.json Cluster lock defines the cluster lock file which is signed by all nodes
8+
│ ├─ deposit-data-*.json Deposit data files are used to activate a Distributed Validator on the DV Launchpad
9+
│ ├─ validator_keys Validator keystores and password
10+
│ │ ├─ keystore-*.json Validator private share key for duty signing
11+
│ │ ├─ keystore-*.txt Keystore password files for keystore-*.json
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[
2+
"node0",
3+
"node1",
4+
"node2",
5+
"node0/charon-enr-private-key",
6+
"node0/cluster-lock.json",
7+
"node0/deposit-data-1eth.json",
8+
"node0/deposit-data.json",
9+
"node0/validator_keys",
10+
"node1/charon-enr-private-key",
11+
"node1/cluster-lock.json",
12+
"node1/deposit-data-1eth.json",
13+
"node1/deposit-data.json",
14+
"node1/validator_keys",
15+
"node2/charon-enr-private-key",
16+
"node2/cluster-lock.json",
17+
"node2/deposit-data-1eth.json",
18+
"node2/deposit-data.json",
19+
"node2/validator_keys"
20+
]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Created charon cluster:
2+
--split-existing-keys=false
3+
4+
pluto/
5+
├─ node[0-2]/ Directory for each node
6+
│ ├─ charon-enr-private-key Charon networking private key for node authentication
7+
│ ├─ cluster-lock.json Cluster lock defines the cluster lock file which is signed by all nodes
8+
│ ├─ deposit-data-*.json Deposit data files are used to activate a Distributed Validator on the DV Launchpad
9+
│ ├─ validator_keys Validator keystores and password
10+
│ │ ├─ keystore-*.json Validator private share key for duty signing
11+
│ │ ├─ keystore-*.txt Keystore password files for keystore-*.json
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[
2+
"node0",
3+
"node1",
4+
"node2",
5+
"node3",
6+
"node0/charon-enr-private-key",
7+
"node0/cluster-lock.json",
8+
"node0/deposit-data-1eth.json",
9+
"node0/deposit-data.json",
10+
"node0/validator_keys",
11+
"node1/charon-enr-private-key",
12+
"node1/cluster-lock.json",
13+
"node1/deposit-data-1eth.json",
14+
"node1/deposit-data.json",
15+
"node1/validator_keys",
16+
"node2/charon-enr-private-key",
17+
"node2/cluster-lock.json",
18+
"node2/deposit-data-1eth.json",
19+
"node2/deposit-data.json",
20+
"node2/validator_keys",
21+
"node3/charon-enr-private-key",
22+
"node3/cluster-lock.json",
23+
"node3/deposit-data-1eth.json",
24+
"node3/deposit-data.json",
25+
"node3/validator_keys"
26+
]

0 commit comments

Comments
 (0)