You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ The Litentry parachain.
9
9
Similar to polkadot, different chain-specs/runtimes are compiled into one single binary: in our case it's:
10
10
- litentry-parachain-runtime (on polkadot)
11
11
- litmus-parachain-runtime (on kusama)
12
+
- rococo-parachain-runtime (on rococo)
12
13
13
14
Therefore, when building node binary or docker image, no distinction is required. But when building runtime/starting binary/running tests, the chain type must be explicitly given. See the examples below.
14
15
## Lists of make targets
@@ -39,28 +40,29 @@ make build-runtime-litentry
39
40
```
40
41
The wasms should be located under `target/release/wbuild/litentry-parachain-runtime/`
41
42
42
-
Similarly, use `make build-runtime-litmus` to build the litmus-parachain-runtime.
43
+
Similarly, use `make build-runtime-litmus`and `make build-runtime-rococo`to build the litmus-parachain-runtime and rococo-parachain-runtime, respectively.
43
44
44
45
## launch of local network
45
46
47
+
The following steps take rococo-parachain for example, because `sudo` will be removed for litentry-parachain and [was removed](https://github.com/litentry/litentry-parachain/issues/775) for litmus-parachain. But generally speaking, lauching a local network works with either of the three chain-settings.
48
+
46
49
To start a local network with 2 relaychain nodes and 1 parachain node, there're two ways:
47
50
48
-
### 1. use docker images for both polkadot and litentry-parachain (preferred)
49
-
Take the litentry-parachain for example:
51
+
### 1. use docker images for both polkadot and parachain (preferred)
50
52
```
51
-
make launch-docker-litentry
53
+
make launch-docker-rococo
52
54
```
53
55
[parachain-launch](https://github.com/open-web3-stack/parachain-launch) will be installed and used to generate chain-specs and docker-compose files.
54
56
55
-
The generated files will be under `docker/generated-litentry/`.
57
+
The generated files will be under `docker/generated-rococo/`.
56
58
57
59
When finished with the network, run
58
60
```
59
-
make clean-docker-litentry
61
+
make clean-docker-rococo
60
62
```
61
63
to stop the processes and tidy things up.
62
64
63
-
### 2. use raw binaries for both polkadot and litentry-parachain
65
+
### 2. use raw binaries for both polkadot and parachain
64
66
65
67
Only when option 1 doesn't work and you suspect the docker-image went wrong.
66
68
@@ -69,34 +71,34 @@ In this case we could try to launch the network with raw binaries.
69
71
**On Linux host:**
70
72
71
73
- you should have the locally compiled `./target/release/litentry-collator` binary.
72
-
- run `make launch-binary-litentry`
74
+
- run `make launch-binary-rococo`
73
75
74
76
**On Non-Linux host:**
75
77
76
78
- you should have locally compiled binaries, for both `polkadot` and `litentry-collator`
77
-
- run `./scripts/launch-local-binary.sh litentry path-to-polkadot-bin path-to-litentry-parachain-bin`
79
+
- run `./scripts/launch-local-binary.sh rococo path-to-polkadot-bin path-to-litentry-parachain-bin`
78
80
79
81
When finished with the network, run
80
82
```
81
83
make clean-binary
82
84
```
83
85
to stop the processes and tidy things up.
84
-
Note this command should work for both litentry and litmus (you don't have to differentiate them).
86
+
Note this command should work for all parachain types (you don't have to differentiate them).
85
87
86
88
## run ts tests locally
87
89
88
90
To run the ts tests locally, similar to launching the networks, it's possible to run them in either docker or binary mode:
0 commit comments