BCH
是BTC
的分叉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/bicoind
,BCH
使用的安装源是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
用于测试网络数据的目录