File tree 1 file changed +11
-11
lines changed 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Installation
4
4
5
- #### Prerequisites:
5
+ ### Prerequisites
6
6
7
7
Ensure you have the following installed first:
8
8
@@ -15,51 +15,51 @@ You will also need rust and nightly installed.
15
15
16
16
To install Rust:
17
17
18
- ```
18
+ ``` sh
19
19
curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
20
20
```
21
21
22
22
To install nightly:
23
23
24
- ```
24
+ ``` sh
25
25
rustup install nightly-2022-05-11
26
26
```
27
27
28
28
### Node
29
29
30
30
Navigate to substrate node:
31
31
32
- ```
32
+ ``` sh
33
33
cd substrate-node
34
34
```
35
35
36
36
Add Wasm toolchain:
37
37
38
- ```
38
+ ``` sh
39
39
rustup target add wasm32-unknown-unknown --toolchain nightly-2022-05-11
40
40
```
41
41
42
42
Now you can build:
43
43
44
- ```
44
+ ``` sh
45
45
cargo +nightly-2022-05-11 build --release
46
46
```
47
47
48
48
You can also override the default toolchain
49
49
50
- ```
50
+ ``` sh
51
51
rustup override set nightly-2022-05-11
52
52
```
53
53
54
54
Now you can build as following:
55
55
56
- ```
56
+ ``` sh
57
57
cargo build
58
58
```
59
59
60
60
This will build the node binary in release mode, once built you can execute it by doing following:
61
61
62
- ```
62
+ ``` sh
63
63
./target/release/tfchain --ws-external --dev
64
64
```
65
65
@@ -89,10 +89,10 @@ See [process](./substrate-node/upgrade_process.md)
89
89
90
90
You can use the client to interact with the chain, [ read more] ( ./cli-tool/readme.md )
91
91
92
- ### Data Cleanup:
92
+ ### Data Cleanup
93
93
94
94
To wipe data run:
95
95
96
- ```
96
+ ``` sh
97
97
./target/release/tfchain purge-chain --dev
98
98
```
You can’t perform that action at this time.
0 commit comments