从官网下载全节点钱包后,经过投票,成为101个锻造节点之一,就可以开始挖矿。

注:以下下载链接来自于LBTC官网

Ubuntu下载链接:

https://lbtc.io/download/lbtc-fullnode-wallet-ubuntu16.04-x64-v2.0.1.tar.gz

CentOS下载链接:

https://lbtc.io/download/lbtc-fullnode-wallet-centos7.1-x64-v2.0.1.tar.gz

1.系统要求

ubuntu 16.04

2.安装依赖库

sudo apt update
sudo apt-get install libzmq5
sudo apt-get install libevent-dev
sudo apt-get install libboost-chrono-dev
sudo apt-get install libboost-filesystem-dev
sudo apt-get install libboost-program-options-dev
sudo apt-get install libboost-serialization-dev
sudo apt-get install libboost-dev

3.下载及解压

wget https://lbtc.io/download/lbtc-fullnode-wallet-ubuntu16.04-x64-v2.0.1.tar.gz

tar -zxvf https://lbtc.io/download/lbtc-fullnode-wallet-ubuntu16.04-x64-v2.0.1.tar.gz

4.命令行

  • 开启钱包同步数据

▼./bitcoind

  • 确认区块为最新块高

▼./bitcoin-cli getblockcount

  • 创建新地址

▼./bitcoin-cli getnewaddress

▼1EguwmLDaeVdDApPdCQaGuNBArggS4iY3k

  • 导出地址私钥

▼./bitcoin-cli dumpprivkey 1FncXb4QJZ5sNSPErrhAxYwVP1MF71LFgA

▼L4GPEfZDPPoen1fq3RvoVN7phEnmRN8iCr6mtCq4E9dgZoLkdoaQ

  • 导入地址私钥

▼./bitcoin-cli importprivkey L4GPEfZDPPoen1fAyQPoVN7phEnmRN8iCr6mtCq4E9dgZoLkdoaQ

  • 注册锻造人

▼./bitcoin-cli register 1EguwmLDaeVdDApPdCQaGuNBArggS4iY3k whh1

▼50717bb5da957609b6a5c3c37ddf654516f84b6862694aea23bfca8766c58ca

  • 查询锻造人

▼./bitcoin-cli listdelegates

▼[

{

“id”: 1,

“address”: “1EguwmLDaeVdDApPdCQaGuNBArggS4iY3k”, “name”: “whh1”

}

]

  • 投票锻造人(上限51票)

注: 投票权重的计算是基于地址的平衡。如果你想用你所有的赌注来投票,你必须把所有的硬币转移到一个地址。

▼./bitcoin-cli vote 1FncXb4QJZ5sNSPErrhAxYwVP1MF71LFgA whh1

▼173d4c6c6ddda95b436f3a5d07129d4b0cd71d3a2071e11c7fce050223378dde

  • 查询投票给此锻造人的所有地址

▼./bitcoin-cli listreceivedvotes whh1

▼[ “1FncXb4QJZ5sNSPErrhAxYwVP1MF71LFgA”

]

  • 查询地址投票了哪些锻造人

▼./bitcoin-cli listvoteddelegates 1FncXb4QJZ5sNSPErrhAxYwVP1MF71LFgA

[

{

“name”: “T1”,

“delegate”: “mnMzxN2fk2xxDSvfWEDkvwTXwGAT4Yz9aA”

}

]

  • 开启挖矿

满足以下2个条件:

1.余额大于等于5000 LBTC

2.得票总数排名在101名之内

▼.bitcoin-cli startforging 1EguwmLDaeVdDApPdCQaGuNBArggS4iY3k

  • 停止挖矿

▼./bitcoin-cli stopforging

  • 转账

▼./bitcoin-cli sendtoaddressnew 1EguwmLDaeVdDApPdCQaGuNBArggS4iY3k 10

▼8bb75c2dddade0a997b20cad0f5f8e2b1c92553ad017c4f19fdc63467a1e7a2e

  • 查询命令行帮助信息

▼./bitcoin-cli help

发表评论

电子邮件地址不会被公开。 必填项已用*标注