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
+15-11Lines changed: 15 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,52 +22,56 @@ Stacks is a layer-2 blockchain that uses Bitcoin as a base layer for security an
22
22
_For building on Windows, follow the rustup installer instructions at https://rustup.rs/._
23
23
24
24
```bash
25
-
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
26
-
$ source$HOME/.cargo/env
27
-
$ rustup component add rustfmt
25
+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
26
+
source$HOME/.cargo/env
27
+
rustup component add rustfmt
28
28
```
29
29
30
30
- When building the [`master`](https://github.com/stacks-network/stacks-blockchain/tree/master) branch, ensure you are using the latest stable release:
# Faster but less optimized build. Necessary if < 16 GB RAM
49
+
cargo build --profile release-lite
47
50
```
48
51
49
52
## Testing
50
53
51
54
**Run the tests:**
52
55
53
56
```bash
54
-
$ cargo test testnet -- --test-threads=1
57
+
cargo test testnet -- --test-threads=1
55
58
```
56
59
57
60
**Run all unit tests in parallel using [nextest](https://nexte.st/):**
58
61
59
62
_Warning, this typically takes a few minutes_
63
+
60
64
```bash
61
-
$ cargo nextest run
65
+
cargo nextest run
62
66
```
63
67
64
68
## Run the testnet
65
69
66
70
You can observe the state machine in action locally by running:
67
71
68
72
```bash
69
-
$ cd testnet/stacks-node
70
-
$ cargo run --bin stacks-node -- start --config ./conf/testnet-follower-conf.toml
73
+
cd testnet/stacks-node
74
+
cargo run --bin stacks-node -- start --config ./conf/testnet-follower-conf.toml
71
75
```
72
76
73
77
_On Windows, many tests will fail if the line endings aren't `LF`. Please ensure that you are have git's `core.autocrlf` set to `input` when you clone the repository to avoid any potential issues. This is due to the Clarity language currently being sensitive to line endings._
0 commit comments