比特节点同步

1、下载最新版的比特币核心

https://bitcoin.org/bin/

7100414-9153b37baebe27e8.png
image.png

https://bitcoin.org/en/download

7100414-207f3819389679a8.png
image.png

2、解压缩

tar -zxvf bitcoin-0.17.1-x86_64-linux-gnu.tar.gz

3、进入bin目录

cd cd bitcoin-0.17.1/
cd /bin

4、修改存放钱包文件的路径并开始同步区块

./bitcoind --datadir=/home/service/bitcoin/data/ --daemon

5、查看当前钱包信息

./bitcoin-cli --datadir=/home/service/bitcoin/data/ getinfo
7100414-4e7e6b70991ffdd4.png
image.png
{
  "deprecation-warning": "WARNING: getinfo is deprecated and will be fully removed in 0.16. Projects should transition to using getblockchaininfo, getnetworkinfo, and getwalletinfo before upgrading to 0.16",
  "version": 150200,
  "protocolversion": 70015,
  "walletversion": 139900,
  "balance": 0.00000000,
  "blocks": 558714,
  "timeoffset": -1,
  "connections": 8,
  "proxy": "",
  "difficulty": 5883988430955.408,
  "testnet": false,
  "keypoololdest": 1547543917,
  "keypoolsize": 2000,
  "paytxfee": 0.00000000,
  "relayfee": 0.00001000,
  "errors": ""
}

6、查看同步区块高度

https://www.blockchain.com/btc/blocks

7100414-5f995da176dbc972.png
image.png

7、同步完成,总共区块大小213G

7100414-3b21ceafddc1fd05.png
image.png

猜你喜欢

转载自blog.csdn.net/weixin_34050519/article/details/86848392