下载Bitcoin-abc
Linux x64:
wget https://download.bitcoinabc.org/0.19.10/linux/bitcoin-abc-0.19.10-x86_64-linux-gnu.tar.gz
tar -xzvf bitcoin-abc-0.19.10-x86_64-linux-gnu.tar.gz #解压
编写配置文件
vim bchcoin.conf
#建立索引
txindex=1
#监听模式,默认启动
listen=1
#允许bitcoin接收JSON-RPC
server=1
#RPC用户名
rpcuser=xxxxxx
#RPC密码
rpcpassword=xxxxxx
#RPC端口
rpcport=8888
#允许RPC访问ip
rpcallowip=::/0
配置文件说明文档 如不清楚可参考omni配置方式
rpcpassword,rpcpassusr,rpcport为远程调用访问用户名和密码,可自行配置
启动服务
编写启动脚本
vim start_litecion.sh
nohup ./bitcoind -deprecatedrpc=signrawtransaction -deprecatedrpc=accounts -conf=/xxx/bchcoin.conf -datadir=xxx &
注: -conf 指定配置文件路径 -datadir 指定同步区块数据存放路径
查看是否启动成功
进入datadir配置的目录下有一个debug.log文件, 如出现大批UpdateTip: new best=类日志说明启动成功,正在同步区块数据
另外执行 ./bitcoin-cli -conf=/data/testnet_bch/bitcoin-abc-0.19.9/bin/bchcoin.conf getblockchaininfo
可查看同步情况
评论0