fliecion 命名

扇区操作

2.1 更新扇区状态
$ lotus-miner sectors update-state --really-do-it
针对CommitFailed状态的扇区,可通过以下命令,将扇区状态更改为Committing状态。

$ lotus-miner sectors update-state --really-do-it Committing
2.2 删除扇区
$ lotus-miner sectors remove --really-do-it
针对PreCommitFailed和SealPreCommit1Failed状态的扇区,因为还没有质押,可通过上面的命令直接删除。

节点操作

启动lotus节点
lotus daemon
停止lotus节点
lotus daemon stop
导入链快照
lotus daemon --import-snapshot chain.car
导出链快照
lotus chain export --skip-old-msgs --recent-stateroots=900 chain.car
查看连接的节点
lotus net peers
查看连接状态
lotus sync status
创建钱包
lotus wallet new bls
查看钱包余额
lotus wallet balance
查看与主网高度同步差异
lotus sync wait

钱包常用操作

列出钱包地址:

$ lotus wallet list
查看余额:

$ lotus wallet balance <WALLET_ADDRESS>
默认钱包地址:

$ lotus wallet default
设置默认钱包地址:

$ lotus wallet set-default <WALLET_ADDRESS>
例如: lotus wallet set-default fxxxx001
从默认钱包地址发送代币:

$ lotus send <TARGET_ADDRESS>
例如: lotus send fxxxxx001 10
从指定钱包地址发送代币:

$ lotus send --from=<SENDER_ADDRESS> <TARGET_ADDRESS>
例如: lotus send --from=fxxxxxx002 fxxxxxx001 3
导出钱包和私钥:

$ lotus wallet export <WALLET_ADDRESS>
例如: lotus wallet export fxxxxx001 > fxxxxx001.privatekey
通过私钥导入钱包:

$ lotus wallet import
根据提示输入私钥,导入钱包
例如: lotus wallet import fxxxxx001.privatekey

woker 相关操作

lotus-miner -v的结果为:lotus-miner version 1.5.0+mainnet+git.bd15c4293.dirty
lotus-worker -v的结果为:lotus-worker version 1.5.0+mainnet+git.bd15c4293.dirty

新增存储路径

lotus-miner storage attach --store --init <STORAGE_PATH>

Miner

新增存储路径

lotus-miner storage attach --store --init <STORAGE_PATH>

查看Miner存储路径

lotus-miner storage list

6.4 启动worker
$ lotus-worker run
6.5 查看worker信息
$ lotus-worker info
7. 封装Sector
7.1 封装一个sector
$ lotus-miner sectors pledge
7.2 查看启动的封装任务
$ lotus-miner sealing jobs
7.3 检查启动的workers
$ lotus-miner sealing workers
7.4 查看sector信息
$ lotus-miner sectors list

//lotus lotus-miner lotus-worker lotus-seed lotus-wallet

lotus

备注:Filecoin去中心化存储网络客户端
用法:lotus [global options] command [command options] [arguments...]

COMMANDS:
daemon Start a lotus daemon process
backup Create node metadata backup
advance-block
version Print version
help, h Shows a list of commands or help for one command
BASIC:
send Send funds between accounts
wallet Manage wallet
client Make deals, store data, retrieve data
msig Interact with a multisig wallet
paych Manage payment channels
DEVELOPER:
auth Manage RPC permissions
mpool Manage message pool
state Interact with and query filecoin chain state
chain Interact with filecoin blockchain
log Manage logging
wait-api Wait for lotus api to come online
fetch-params Fetch proving parameters
NETWORK:
net Manage P2P Network
sync Inspect or interact with the chain syncer
STATUS:
status Check node status

posted @ 2021-06-29 11:46  水溪  阅读(330)  评论(0)    收藏  举报