btccom / btcpool-ABANDONED

backend of pool.btc.com
https://pool.btc.com
MIT License
639 stars 408 forks source link

请问下,对于ckb,有类似“build BTCPool that linking to Bitcoin”的详细安装说明文档吗? #401

Closed loloxiao closed 4 years ago

loloxiao commented 4 years ago

build BTCPool that linking to Bitcoin

mkdir /work cd /work wget -O bitcoin-0.16.0.tar.gz https://github.com/bitcoin/bitcoin/archive/v0.16.0.tar.gz tar zxf bitcoin-0.16.0.tar.gz

git clone https://github.com/btccom/btcpool.git cd btcpool mkdir build cd build

Release build:

cmake -DJOBS=4 -DCHAIN_TYPE=BTC -DCHAIN_SRC_ROOT=/work/bitcoin-0.16.0 .. make -j$(nproc)

Release build at macOS:

cmake -DCHAIN_TYPE=BTC -DCHAIN_SRC_ROOT=/work/bitcoin-0.16.0 -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl .. make -j$(nproc)

Debug build:

cmake -DCMAKE_BUILD_TYPE=Debug -DCHAIN_TYPE=BTC -DCHAIN_SRC_ROOT=/work/bitcoin-0.16.0 .. make -j$(nproc)

duguyifang commented 4 years ago

对于beam、grin、ckb这些币,按照以上方法联合bitcoin代码编译即可,需要注意的是配置文件按照对应币种的配置模版设置即可。