bsv全节点搭建docker
<h5>Dockerfile:</h5>
<pre><code>FROM ubuntu:18.04
MAINTAINER KevinEJohn <kevinejohn@gmail.com>
RUN apt-get update
RUN apt-get install -y git build-essential libzmq3-dev libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-all-dev
RUN git clone https://github.com/bitcoin-sv/bitcoin-sv.git --branch v0.2.0 /root/bitcoin-sv
WORKDIR /root/bitcoin-sv
RUN ./autogen.sh
RUN ./configure --disable-wallet --disable-tests
RUN make
RUN make install
RUN mkdir conf
COPY bitcoin.conf conf
EXPOSE 8332 8333 18332 18333 28332
CMD ["bitcoind","--conf=/root/bitcoin-sv/conf/bitcoin.conf","-printtoconsole"]</code></pre>
<h5>bitcoin.conf:</h5>
<pre><code>server=1
txindex=1
addressindex=1
timestampindex=1
spentindex=1
zmqpubrawtx=tcp://127.0.0.1:28332
zmqpubhashblock=tcp://127.0.0.1:28332
rpcallowip=0.0.0.0/0
rpcport=8332(默认)
rpcuser=test
rpcpassword=test
uacomment=bitcore</code></pre>
<h5>常用命令:</h5>
<pre><code>bitcoin-cli --conf=/root/bitcoin-sv/conf/bitcoin.conf getblockcount</code></pre>
<p><img src="https://www.showdoc.cc/server/api/common/visitfile/sign/7fa6b1e9fd9c693e8ed7f9b559e63d72?showdoc=.jpg" alt="" />
<img src="https://www.showdoc.cc/server/api/common/visitfile/sign/802470d1cca464a71aa8b68eb540af89?showdoc=.jpg" alt="" /></p>