Skip to content

Commit cc82e90

Browse files
pifragilebrenzi
andauthored
update readme (paritytech#121)
* update readme * fix typo * replace cd .. with explicit instructions * clarify sudo patched binary Co-authored-by: brenzi <brenzi@users.noreply.github.com>
1 parent c06e450 commit cc82e90

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ It is forked from the [Cumulus](https://github.com/paritytech/cumulus) repositor
1010

1111
## Launch a local setup with polkadot-launch
1212

13-
Build sudo-patched polkadot binary
13+
###Build sudo-patched polkadot binary
14+
Inside the parent directory of this repo, execute the following commands:
1415
```bash
1516
git clone https://github.com/paritytech/polkadot
17+
cd polkadot
1618
git fetch
1719
git checkout v0.9.18
1820
# add sudo to all types of relaychain to simplify and accelerate testing
@@ -22,7 +24,10 @@ diener update --substrate --branch polkadot-v0.9.18
2224
cargo build --release
2325
```
2426

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.
2631

2732

2833
### Setup local testnet with polkadot-launch
@@ -32,14 +37,16 @@ Place the binary into `../../bin/polkadot-0.9.18-sudo`
3237

3338
**Preliminaries:** you need to have yarn and node installed
3439

40+
Inside the parent directory of this repo, execute the following commands:
3541
```bash
3642
# We need to build it from source. The one from the yarn registry does not work with our code.
3743
git clone https://github.com/paritytech/polkadot-launch
3844
cd polkadot-launch
3945
yarn install
4046
yarn build
4147

42-
# In the root directory of this repository simply execute
48+
cd ../encointer-parachain
49+
cargo build --release
4350
node ../polkadot-launch/dist/cli.js ./polkadot-launch/launch-rococo-local-with-launch.json
4451
```
4552

0 commit comments

Comments
 (0)