Ironfish挖矿教程

首先准备一台服务器,CPU核心数要多一些,8核以上,内存要求不高。

安装 node.js 16

dnf module install nodejs:16

安装GCC 和其它的工具

yum install make gcc gcc-c++ 
yum install git python36

安装rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env

第一条命令会弹出一个菜单,直接回车或者选项1(缺省)即可。

安装 yarn

npm install --global yarn

下载官方源代码

cd /root
git clone https://github.com/iron-fish/ironfish.git
chown -R root ironfish

编译源码

cd /root/ironfish
yarn install 
yarn build  
cd /root/ironfish/ironfish-cli/
yarn build

如果编译源码后,在执行ironfish的相关命令出现 xxx is not a ironfish command 这类错误,可以执行

cd /root/ironfish
yarn install 
yarn build

启动节点(初次启动要同步数据比较慢)

cd /root/ironfish/ironfish-cli/
yarn ironfish start

窗口不要关闭,或者把启动命令修改为后台方式

nohup yarn ironfish start >nohup.log &

配置帐号(与官网注册一致)

yarn ironfish config:set blockGraffiti "sddcg"

双引号填写自己在官网注册的帐号

再开一个终端窗口开启挖矿

cd /root/ironfish/ironfish-cli/
yarn ironfish miners:start -t CPU核心数
或
yarn ironfish miners:start -t -1

窗口不要关闭,或者把启动命令修改为后台方式

nohup yarn ironfish miners:start -t -1 >/dev/null 2>mine.log &

官网查看积分

https://testnet.ironfish.network/leaderboard

每次登录都会发邮件,需要到邮箱点击链接完成登录

在search框输入自己的帐号后就能过滤自己的帐号,然后点击进入就可以查看积分情况

水龙头领币

cd /root/ironfish/ironfish-cli/
yarn ironfish faucet

查看状态

cd /root/ironfish/ironfish-cli/  
yarn ironfish status -f

下图的 mined前的数字表示你挖到的数量

status
status