Bitcoin blockchain library
master(linux/osx) | dev(linux/osx) | master(windows) | dev(windows) |
---|---|---|---|
Make sure you have installed bitprim-core, bitprim-database and bitprim-consensus (optional) beforehand according to their respective build instructions.
$ git clone https://github.com/bitprim/bitprim-blockchain.git
$ cd bitprim-blockchain
$ mkdir build
$ cd build
$ cmake .. -DWITH_TESTS=OFF -DWITH_TOOLS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-std=c++14"
$ make -j2
$ sudo make install
bitprim-blockchain is now installed in /usr/local/
.
The default configuration requires bitprim-consensus
. This ensures consensus parity with the Satoshi client. To eliminate the bitprim-consensus
dependency use the --without-consensus
option. This results in use of bitprim-core
consensus checks.