Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.22 KB

File metadata and controls

44 lines (32 loc) · 1.22 KB

Deployment

There is couple approaches for deploying MicroBitcoin node. First one is using prebuilt binaries from official releases:

https://github.com/MicroBitcoinOrg/MicroBitcoin/releases/latest

Issue with first approach is that it may not work on all system which would require you building node from source code:

sudo apt-get install make automake cmake curl g++-multilib libtool binutils-gold bsdmainutils pkg-config python3 patch bison git
git clone https://github.com/MicroBitcoinOrg/MicroBitcoin
cd depends/
make HOST=x86_64-pc-linux-gnu -j4
cd ..
./autogen.sh
CONFIG_SITE=$PWD/depends/x86_64-pc-linux-gnu/share/config.site ./configure --disable-shared 
make -j4

Once compilation process has finished you can get microd and micro-cli binaries from src/ directory.

After you obtained binaries compatible with your system you can start blockchain synchronization process. We recommend create config file at your home directory ~/.micro/micro.conf with following content:

rpcuser=username
rpcpassword=password
txindex=1
daemon=1
server=1

Make sure to change credentials.

Once this is done you can start node:

./microd

To check synchronization status you can do

./micro-cli getblockchaininfo