如何在Filecoin测试网进行存储挖矿?| 火星技术帖
<img src="https://p3-sign.toutiaoimg.com/pgc-image/RivR6n1AU5yy8h~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1713685897&x-signature=y10WA9DeiXkIIGNKl8OWtI3ABEk%3D" style="width: 100%; margin-bottom: 20px;"><p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">免责声明:本文旨在传递更多市场信息,不构成任何投资建议。文章仅代表作者观点,不代表火星财经官方立场。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">小编:记得关注哦</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">来源:引擎存储</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">距Filecoin测试网上线过去5天啦!我们引擎存储技术团队一直都在深度参与测试当中,见证着复制证明和时空证明为基础的期望共识,对区块链运行机制的重大探索。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">上周六,我们给大家分享了一篇如何加入测试网的科普文章,点击查看《科普 | 最全的Filecoin测试网挖矿步骤解析》,今天我们为大家带来第二篇分享,如何进行存储挖矿。开始前,请确保你符合硬件规格,并最好已加入了测试网。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">注意:在矿机运行时,将有许多警告和错误日志。</p><img src="https://p3-sign.toutiaoimg.com/pgc-image/RktsfwiEicWbEN~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1713685897&x-signature=m%2FR5Blan10mfS8LRKHNwelbP%2BIs%3D" style="width: 100%; margin-bottom: 20px;">
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">1. 开始添加矿机</strong></p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">请使用以下命令确保你的钱包中至少有一个BLS地址:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">lotus wallet list</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">之后前往官方的页面</p>https://faucet.testnet.filecoin.io/索取测试用的资金FIL,点击创建矿机(Create Miner),等待一段时间。注意不要刷新页面。
<img src="https://p3-sign.toutiaoimg.com/pgc-image/RktsfxE6MbATO9~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1713685897&x-signature=qZ%2FiCk52ZVmWMxDlXMDn7uNH%2Ftg%3D" style="width: 100%; margin-bottom: 20px;">
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">成功后会返回一个地址:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">New storage miners address is: </p>
<h2 style="text-align: left; margin-bottom: 10px;"><strong style="color: blue;">2. 初始化存储矿机</strong></h2>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">在CLI窗口中,使用以下命令启动你创建的矿机:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">lotus-storage-miner init --actor=ACTOR_VALUE_RECEIVED --owner=OWNER_VALUE_RECEIVED</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">你将需要等待一段时间才能完成此操作,例如:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">lotus-storage-miner init --actor=t01424 --owner=t3spmep2xxsl33o4gxk7yjxcobyohzgj3vejzerug25iinbznpzob6a6kexcbeix73th6vjtzfq7boakfdtd6a</p>
<h2 style="text-align: left; margin-bottom: 10px;"><strong style="color: blue;">3. 挖矿</strong></h2>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">● 用下面的命令开始挖矿:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">lotus-storage-miner run</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">如果要下载Filecoin证明参数(Proof Parameters),则下载可能需要一些时间。如果你位于中国,则可以尝试官方的的JD Cloud CDN(JD的CDN服务,压缩文件很大,链接地址如下:)</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">https://s3.cn-south-1.jdcloud-oss.com/proof-parameters/filecoin-proof-parameters-v20-testnet.tar.gz</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">● 获取矿机信息:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">lotus-storage-miner info</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"># example: miner id `t0111`</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">● 密封随机数据以开始生成时空证明PoSts:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">lotus-storage-miner pledge-sector</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">警告:在Linux配置上,此命令会将数据写入“$ TMPDIR”,通常这不是最大的分区。如果可能,应将值指向更大的分区。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">● 获取矿机的算力和扇区使用情况:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">lotus-storage-miner state power</strong></p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;"># returns total power</strong></p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">lotus-storage-miner state power </strong></p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">lotus-storage-miner state sectors </strong></p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">● 修改昵称(可选):</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">使用以下命令更新</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">“〜/ .lotus / config.toml”:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"></p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">Nickname="fun"</p>
<h2 style="text-align: left; margin-bottom: 10px;"><strong style="color: blue;">4. 静态端口</strong></h2>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">根据网络的设置方式,你可能需要设置一个静态端口以成功连接到其它对等节点(peers),这样才能可以让你和Lotus网络中的存储矿工进行存储交易。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">● 配置:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">要更改随机群端口,可以编辑“$ LOTUS_STORAGE_PATH下”的“config.toml”文件。该文件的默认位置是“$ HOME / .lotusstorage”。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">将端口更改为“1347”:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"></p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">ListenAddresses = ["/ip4/0.0.0.0/tcp/1347", "/ip6/::/tcp/1347"]</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">更改端口数值后,你需要重新启动守护程序。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">● Ubuntu简易防火墙</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">手动打开防火墙:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">ufw allow 1347/tcp</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">或打开并修改“</p>/etc/ufw/applications.d/lotus-daemon”中的配置文件:
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"></p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">title=Lotus Daemon</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">description=Lotus Daemon firewall rules</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">ports=1347/tcp</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">然后运行以下命令:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">ufw update lotus-daemon</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">ufw allow lotus-daemon</p><img src="https://p3-sign.toutiaoimg.com/pgc-image/RktsfxVEhAUPzO~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1713685897&x-signature=Bz3BtM3od9SXtOyaB0%2B5cxz9DHQ%3D" style="width: 100%; margin-bottom: 20px;">
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">5. 挖矿疑难解决</strong></p>
<h3 style="text-align: left; margin-bottom: 10px;">● Bellman Lockfile:</h3>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">创建Bellman锁定文件以锁定进程的GPU。如果未正确清理此文件,则会发生此错误:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">mining block failed: computing election proof: github.com/filecoin-project/lotus/miner.(*Miner).mineOne</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">当存储矿工无法获取bellman.lock时,将发生此错误。要修复它,您需要停止“Lotus-storage-miner”并删除“/tmp/bellman.lock”。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">● 你的矿机还没准备好:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">lotus-storage-miner info</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"># WARN main lotus-storage-miner/main.go:73 failed to get api endpoint: (/Users/myrmidon/.lotusstorage) %!w(*errors.errorString=&{API not running (no endpoint)}):</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">如果看到此消息,则意味着你的Lotus存储矿机尚未准备就绪。你需要完成同步链。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">● 你的计算机速度太慢:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">CAUTION: block production took longer than the block delay. Your computer may not be fast enough to keep up</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">如果看到此消息,则意味着你的计算机速度太慢,并且你的区块不包含在链中,你将不会获得到任何奖励。这意味着你要用好点的机器了。</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">● 存储空间不足:</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">lotus-storage-miner pledge-sector</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"># No space left on device (os error 28)</p>
<p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">如果看到此信息,则意味着抵押扇区写入过度数据进入了“$ TMPDIR”,该“$ TMPDIR”默认情况下是根分区(这在Linux安装程序中很常见)。通常,你的根分区不会获得最大的存储分区,因此你需要将环境变量更改为其它变量。</p>
页:
[1]