documentation: adds code block label
This commit is contained in:
parent
9332118b49
commit
161dc045ef
@ -49,14 +49,14 @@ Use the command `brew install` to install the following packages:
|
||||
brew install go bzr jq pkg-config rustup
|
||||
```
|
||||
|
||||
## Clone
|
||||
Clone
|
||||
|
||||
```sh
|
||||
git clone https://github.com/filecoin-project/lotus.git
|
||||
cd lotus/
|
||||
```
|
||||
|
||||
## Build
|
||||
Build
|
||||
|
||||
```sh
|
||||
make clean && make all
|
||||
|
@ -3,32 +3,32 @@
|
||||
Build the lotus binaries in debug mode, This enables the use of 1024 byte
|
||||
sectors.
|
||||
|
||||
```
|
||||
```sh
|
||||
make debug
|
||||
```
|
||||
|
||||
Pre-seal some sectors:
|
||||
|
||||
```
|
||||
```sh
|
||||
./lotus-seed pre-seal --sector-size 1024 --num-sectors 2
|
||||
```
|
||||
|
||||
Create the genesis block and start up the first node:
|
||||
|
||||
```
|
||||
```sh
|
||||
./lotus daemon --lotus-make-random-genesis=dev.gen --genesis-presealed-sectors
|
||||
=~/.genesis-sectors/pre-seal-t0101.json --bootstrap=false
|
||||
```
|
||||
|
||||
Set up the genesis miner:
|
||||
|
||||
```
|
||||
```sh
|
||||
./lotus-storage-miner init --genesis-miner --actor=t0101 --sector-size=1024 --pre-sealed-sectors=~/.genesis-sectors --nosync
|
||||
```
|
||||
|
||||
Now, finally, start up the miner:
|
||||
|
||||
```
|
||||
```sh
|
||||
./lotus-storage-miner run --nosync
|
||||
```
|
||||
|
||||
|
@ -33,7 +33,7 @@ included in the chain, and you will not receive any rewards.
|
||||
|
||||
## Running out of storage
|
||||
|
||||
```
|
||||
```sh
|
||||
lotus-storage-miner pledge-sector
|
||||
# No space left on device (os error 28)
|
||||
```
|
||||
@ -54,7 +54,7 @@ benchmark.
|
||||
First, to watch GPU utilization run `nvtop` in one terminal, then in a separate
|
||||
terminal, run:
|
||||
|
||||
```
|
||||
```sh
|
||||
lotus-bench --sector-size=1024
|
||||
```
|
||||
|
||||
|
@ -26,7 +26,7 @@ automatically pick up the correct authentication tokens from the
|
||||
To check that the seal worker is properly connected to your storage miner, run
|
||||
`lotus-storage-miner info` and check that the remote worker count has increased.
|
||||
|
||||
```
|
||||
```sh
|
||||
why@computer ~/lotus> lotus-storage-miner info
|
||||
Miner: t0103
|
||||
Sector Size: 16.0 MiB
|
||||
@ -95,7 +95,7 @@ Once this is set, you should be able to just run `lotus-seal-worker run`.
|
||||
To check that the seal worker is properly connected to your storage miner, run
|
||||
`lotus-storage-miner info` and check that the remote worker count has increased.
|
||||
|
||||
```
|
||||
```sh
|
||||
why@computer ~/lotus> lotus-storage-miner info
|
||||
Miner: t05749
|
||||
Sector Size: 1 GiB
|
||||
|
Loading…
Reference in New Issue
Block a user