LBTC挖矿教程
下载全节点钱包及其Data,主网上线后将会在官方网站中放置下载地址,请认准官方地址,谨防上当受骗。先下载Full Node Wallet,再将Full Node Wallet Data下载至前者文件夹内。
LBTC挖矿教程LBTC挖矿教程
安装及使用
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-dev
3. 命令
加粗部分为本教程示例地址,需要根据条件替换成本人地址或代理人地址
开启钱包:
nohup ./src/bitcoind -txindex&
获取新地址:
./bitcoin-cli getnewaddress
1EguwmLDaeVdDApPdCQaGuNBArggS4iY3k
查看私钥:
./bitcoin-cli dumpprivkey 1FncXb4QJZ5sNSPErrhAxYwVP1MF71LFgA
L4GPEfZDPPoen1fq3RvoVN7phEnmRN8iCr6mtCq4E9dgZoLkdoaQ
导入私钥:
./bitcoin-cli importprivkey
L4GPEfZDPPoen1fAyQPoVN7phEnmRN8iCr6mtCq4E9dgZoLkdoaQ
代理人注册(代理人可被投票):
./bitcoin-cli register 1EguwmLDaeVdDApPdCQaGuNBArggS4iY3k (空格)whh1(whh1代表示例代理人)
50717bb5da957609b6a5c3c37ddf654516f84b6862694aea23bfca8766c58ca
查看所有代理人
./bitcoin-cli listdelegates
[
{
"id": 1,
"address": "1EguwmLDaeVdDApPdCQaGuNBArggS4iY3k",
"name": "whh1"
}
]
给代理人投票
./bitcoin-cli vote 1FncXb4QJZ5sNSPErrhAxYwVP1MF71LFgA whh1
173d4c6c6ddda95b436f3a5d07129d4b0cd71d3a2071e11c7fce050223378dde
查看谁投了我
./bitcoin-cli listreceivedvotes whh1
[ "1FncXb4QJZ5sNSPErrhAxYwVP1MF71LFgA"
]
查看我投了谁
./bitcoin-cli listvoteddelegates 1FncXb4QJZ5sNSPErrhAxYwVP1MF71LFgA
./bitcoin-cli listvoteddelegates 1FncXb4QJZ5sNSPErrhAxYwVP1MF71LFgA
[
{
"id": 1,
"time": 1517291154,
"height": 114,
"type": "vote",
"share": 569101000000,
"voter": "1FncXb4QJZ5sNSPErrhAxYwVP1MF71LFgA",
"delegate": "1EguwmLDaeVdDApPdCQaGuNBArggS4iY3k"
}
]
注:"type": "vote" 表示为投票,其他的为取消投票。
开始锻造(挖矿)
.bitcoin-cli startforging
1EguwmLDaeVdDApPdCQaGuNBArggS4iY3k
注:如地址私钥没有导入到本机账户,锻造需要导入私钥
停止锻造(挖矿)
./bitcoin-cli stopforging
注:投票权重根据地址余额计算。如用户想投账户下所有币,需要把账户下其他地址的币,转到投票地址。
转账
./bitcoin-cli sendtoaddressnew
1EguwmLDaeVdDApPdCQaGuNBArggS4iY3k 10
8bb75c2dddade0a997b20cad0f5f8e2b1c92553ad017c4f19fdc63467a1e7a2e
查看命令详细帮助
./bitcoin-cli help