@@ -10,9 +10,11 @@ It is forked from the [Cumulus](https://github.com/paritytech/cumulus) repositor
10
10
11
11
## Launch a local setup with polkadot-launch
12
12
13
- Build sudo-patched polkadot binary
13
+ ###Build sudo-patched polkadot binary
14
+ Inside the parent directory of this repo, execute the following commands:
14
15
``` bash
15
16
git clone https://github.com/paritytech/polkadot
17
+ cd polkadot
16
18
git fetch
17
19
git checkout v0.9.18
18
20
# add sudo to all types of relaychain to simplify and accelerate testing
@@ -22,7 +24,10 @@ diener update --substrate --branch polkadot-v0.9.18
22
24
cargo build --release
23
25
```
24
26
25
- Place the binary into ` ../../bin/polkadot-0.9.18-sudo `
27
+ Run:
28
+ ` cp target/release/polkadot ../../bin/polkadot-0.9.18-sudo `
29
+ It is assumed that the bin directory exists at this relative path.
30
+ Note: When using the ` launch-rococo-local-with-encointer ` setup it is assumed that the ` bin ` folder also contains a ` polkadot-0.9.18 ` binary.
26
31
27
32
28
33
### Setup local testnet with polkadot-launch
@@ -32,14 +37,16 @@ Place the binary into `../../bin/polkadot-0.9.18-sudo`
32
37
33
38
** Preliminaries:** you need to have yarn and node installed
34
39
40
+ Inside the parent directory of this repo, execute the following commands:
35
41
``` bash
36
42
# We need to build it from source. The one from the yarn registry does not work with our code.
37
43
git clone https://github.com/paritytech/polkadot-launch
38
44
cd polkadot-launch
39
45
yarn install
40
46
yarn build
41
47
42
- # In the root directory of this repository simply execute
48
+ cd ../encointer-parachain
49
+ cargo build --release
43
50
node ../polkadot-launch/dist/cli.js ./polkadot-launch/launch-rococo-local-with-launch.json
44
51
```
45
52
0 commit comments