sudo apt install git
sudo apt install pkg-config
git clone https://github.com/OmniLayer/omnicore.git
sudo apt install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
sudo apt install libboost-all-dev
sudo apt install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt update
sudo apt install libdb4.8-dev libdb4.8++-dev
cd omnicore/
./autogen.sh
./configure
make
复制 ~/omnicore/contrib/debian/examples/bitcoin.conf 到 ~/.bitcoin
/.bitcoin没有则新增
在bitcoin.conf增加以下:
server=1
txindex=1
rpcuser=r1p2c3
rpcpassword=r1p2c3f4
rpcallowip=127.0.0.1
rpcport=8332
paytxfee=0.00001
minrelaytxfee=0.00001
datacarriersize=80
logtimestamps=1
omnidebug=tally
omnidebug=packets
omnidebug=pending
sudo ln -s ~/omnicore/src/omnicore-cli /usr/bin/
sudo ln -s ~/omnicore/src/omnicored /usr/bin/
omnicored -regtest //启动测试网络
omnicore-cli "generate" 1 //挖一个区块