2019-12-02 00:08:53 +00:00
|
|
|
# Getting started
|
2019-12-01 08:21:20 +00:00
|
|
|
|
2019-12-04 15:39:41 +00:00
|
|
|
Ensure that at least one **BLS address** (`t3..`) in your wallet exists
|
2019-12-01 08:21:20 +00:00
|
|
|
|
|
|
|
```sh
|
|
|
|
$ lotus wallet list
|
|
|
|
t3...
|
|
|
|
```
|
|
|
|
|
2019-12-04 15:39:41 +00:00
|
|
|
With this address, go to the [faucet](https://lotus-faucet.kittyhawk.wtf/miner.html), and
|
2019-12-01 08:21:20 +00:00
|
|
|
click `Create Miner`
|
|
|
|
|
2019-12-04 15:39:41 +00:00
|
|
|
Wait for a page telling you the address of the newly created **Lotus Storage Miner** to appear.
|
2019-12-01 08:21:20 +00:00
|
|
|
|
2019-12-02 00:08:53 +00:00
|
|
|
The screen should show: `New storage miners address is: t0..`
|
|
|
|
|
|
|
|
## Initialize
|
2019-12-01 08:21:20 +00:00
|
|
|
|
|
|
|
```sh
|
|
|
|
$ lotus-storage-miner init --actor=t01.. --owner=t3....
|
|
|
|
```
|
|
|
|
|
2019-12-04 15:39:41 +00:00
|
|
|
This command should return successfully after **Lotus Storage Miner** is setup on **chain**. It usually takes 30 to 60 seconds.
|
2019-12-01 08:21:20 +00:00
|
|
|
|
2019-12-02 00:08:53 +00:00
|
|
|
## Start mining
|
2019-12-01 08:21:20 +00:00
|
|
|
|
|
|
|
```sh
|
|
|
|
$ lotus-storage-miner run
|
|
|
|
```
|
|
|
|
|
|
|
|
To view the miner id used for deals:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
$ lotus-storage-miner info
|
|
|
|
```
|
|
|
|
|
|
|
|
e.g. miner id `t0111`
|
|
|
|
|
2019-12-04 15:39:41 +00:00
|
|
|
**Seal** random data to start producing **PoSts**:
|
2019-12-01 08:21:20 +00:00
|
|
|
|
|
|
|
```sh
|
|
|
|
$ lotus-storage-miner store-garbage
|
|
|
|
```
|
|
|
|
|
2019-12-04 15:39:41 +00:00
|
|
|
You can check **miner power** and **sector** usage with the miner id:
|
2019-12-01 08:21:20 +00:00
|
|
|
|
|
|
|
```sh
|
|
|
|
# Total power of the network
|
|
|
|
$ lotus-storage-miner state power
|
|
|
|
|
|
|
|
$ lotus-storage-miner state power <miner>
|
|
|
|
|
|
|
|
$ lotus-storage-miner state sectors <miner>
|
|
|
|
```
|
2019-12-04 15:39:41 +00:00
|
|
|
|
|
|
|
## Assign a nickname for your node
|
|
|
|
|
2019-12-04 17:53:36 +00:00
|
|
|
In the `.lotus` folder, modify `config.toml` with:
|
2019-12-04 15:39:41 +00:00
|
|
|
|
2019-12-04 17:53:36 +00:00
|
|
|
```sh
|
2019-12-04 15:39:41 +00:00
|
|
|
[Metrics]
|
|
|
|
Nickname="snoopy"
|
|
|
|
```
|