diff --git a/documentation/en/install-lotus-macos.md b/documentation/en/install-lotus-macos.md index d19308612..81466c0c6 100644 --- a/documentation/en/install-lotus-macos.md +++ b/documentation/en/install-lotus-macos.md @@ -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 diff --git a/documentation/en/local-dev-net.md b/documentation/en/local-dev-net.md index 20cf59cf7..c28931d66 100644 --- a/documentation/en/local-dev-net.md +++ b/documentation/en/local-dev-net.md @@ -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 ``` diff --git a/documentation/en/mining-troubleshooting.md b/documentation/en/mining-troubleshooting.md index 711de7b02..d08e7d847 100644 --- a/documentation/en/mining-troubleshooting.md +++ b/documentation/en/mining-troubleshooting.md @@ -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 ``` diff --git a/documentation/en/mining-worker.md b/documentation/en/mining-worker.md index 9cdfa546d..8370ffff2 100644 --- a/documentation/en/mining-worker.md +++ b/documentation/en/mining-worker.md @@ -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