2019-12-18 18:53:19 +00:00
|
|
|
# Setup Local Devnet
|
2019-12-18 04:13:18 +00:00
|
|
|
|
2019-12-18 21:46:09 +00:00
|
|
|
Build the Lotus Binaries in debug mode, This enables the use of 1024 byte sectors.
|
2019-12-18 18:40:47 +00:00
|
|
|
|
2019-12-18 18:48:15 +00:00
|
|
|
```sh
|
2019-12-18 04:13:18 +00:00
|
|
|
make debug
|
|
|
|
```
|
|
|
|
|
2020-01-14 01:15:42 +00:00
|
|
|
Download the 1024 byte parameters:
|
|
|
|
```sh
|
|
|
|
./lotus fetch-params --proving-params 1024
|
|
|
|
```
|
|
|
|
|
2019-12-18 04:13:18 +00:00
|
|
|
Pre-seal some sectors:
|
2019-12-18 18:40:47 +00:00
|
|
|
|
2019-12-18 18:48:15 +00:00
|
|
|
```sh
|
2019-12-18 04:13:18 +00:00
|
|
|
./lotus-seed pre-seal --sector-size 1024 --num-sectors 2
|
|
|
|
```
|
|
|
|
|
|
|
|
Create the genesis block and start up the first node:
|
2019-12-18 18:40:47 +00:00
|
|
|
|
2019-12-18 18:48:15 +00:00
|
|
|
```sh
|
2019-12-23 05:31:55 +00:00
|
|
|
./lotus daemon --lotus-make-random-genesis=dev.gen --genesis-presealed-sectors=~/.genesis-sectors/pre-seal-t0101.json --bootstrap=false
|
2019-12-18 04:13:18 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Set up the genesis miner:
|
2019-12-18 18:40:47 +00:00
|
|
|
|
2019-12-18 18:48:15 +00:00
|
|
|
```sh
|
2019-12-18 04:13:18 +00:00
|
|
|
./lotus-storage-miner init --genesis-miner --actor=t0101 --sector-size=1024 --pre-sealed-sectors=~/.genesis-sectors --nosync
|
|
|
|
```
|
|
|
|
|
|
|
|
Now, finally, start up the miner:
|
2019-12-18 18:40:47 +00:00
|
|
|
|
2019-12-18 18:48:15 +00:00
|
|
|
```sh
|
2019-12-18 04:13:18 +00:00
|
|
|
./lotus-storage-miner run --nosync
|
|
|
|
```
|
|
|
|
|
2019-12-18 18:53:19 +00:00
|
|
|
If all went well, you will have your own local Lotus Devnet running.
|