Ubuntu安装bitcoind(BTC和BCH)

BCHBTC的分叉fork币,使用方法上无区别,BCH具有更低的transaction fee,选择BCH作为交易载体实惠。两者安装时的不同之处是bitcoind的安装源不同。

BTC安装

sudo apt install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt update -y
sudo apt install bitcoind

BTC安装

sudo apt install software-properties-common
sudo add-apt-repository ppa:bitcoin-abc/ppa
sudo apt update -y
sudo apt install bitcoind

总结

BTC使用的安装源是ppa:bitcoin/bicoindBCH使用的安装源是ppa:bitcoin-abc/ppa,同样是安装bitcoind,所以应注意两者安装源的不兼容,可进入/etc/apt/sources.list.d/目录对已添加安装源进行删除。

配置

~/.bitcoin隐藏目录下,创建bitcoin.conf文件,并做以下配置

rpcuser=someusername
rpcpassword=somepassword
daemon=1
server=1
keypool=10000
prune=600
maxuploadtarget=20
maxconnections=16
walletnotify=curl http://127.0.0.1:11990/?txid=%s

使用testnet网络

bitcoind -testnet

通过-testnet参数运行后,在~/.bitcoin目录下会生成testnet3用于测试网络数据的目录

猜你喜欢

转载自blog.csdn.net/wudics/article/details/84064349
今日推荐