首先准备一台服务器,CPU核心数要多一些,8核以上,内存要求不高。
dnf module install nodejs:16
yum install make gcc gcc-c++
yum install git python36
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
第一条命令会弹出一个菜单,直接回车或者选项1(缺省)即可。
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前的数字表示你挖到的数量

