omni钱包节点搭建
1、安装依赖
$yum install libtool
$yum install gcc
$yum install gcc-g++
$yum install make
$yum install autoconfig
$yum install automake
$yum install libtool
yum install boost-devel (old boost-devel-1.41.0-18.el6.x86_64)
yum install openssl-devel
yum install libevent-devel
2、安装数据库libdb4
#centos下安装
mkdir /home/libdb4
cd /home/libdb4/
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libdb4-4.8.30-13.el7.x86_64.rpm
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libdb4-devel-4.8.30-13.el7.x86_64.rpm
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libdb4-cxx-4.8.30-13.el7.x86_64.rpm
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libdb4-cxx-devel-4.8.30-13.el7.x86_64.rpm
rpm -ivh libdb4-4.8.30-13.el7.x86_64.rpm
rpm -ivh libdb4-devel-4.8.30-13.el7.x86_64.rpm
rpm -ivh libdb4-cxx-4.8.30-13.el7.x86_64.rpm
rpm -ivh libdb4-cxx-devel-4.8.30-13.el7.x86_64.rpm
#ubantu下安装
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
3、下载omnicore钱包源码
cd /home
git clone https://github.com/OmniLayer/omnicore.git
4、编译omnicore源码
cd /home/omnicore/
./autogen.sh
./configure
make & make install
5、配置文件
cd /root/.bitcoin/
vim bitcoin.conf
server=1
testnet=0 #测试链填 1 主链填 0
rpcuser=xirigh # RPC用户名
rpcpassword=[PASSWORD] #RPC密码
rpcallowip=0.0.0.0/0 #允许链接的IP
rpcport=8886 #RPC访问端口
txindex=1
6、创建USDT区块存储目录
mkdir /home/usdt
7、后台启动omnicore钱包
nohup omnicored -conf=/root/.bitcoin/bitcoin.conf -datadir=/home/usdt -testnet&
nohup ./omnicored --datadir=/data/usdt --conf=/root/.bitcoin/bitcoin.conf -testnet&
8、查看钱包通过同步状态
omnicore-cli -conf=/root/.bitcoin/bitcoin.conf getinfo
{
"version": 130200,
"protocolversion": 70015,
"walletversion": 130000,
"balance": 0.00000000,
"blocks": 1576428,
"timeoffset": -2,
"connections": 8,
"proxy": "",
"difficulty": 1,
"testnet": true,
"keypoololdest": 1566899884,
"keypoolsize": 100,
"paytxfee": 0.00000000,
"relayfee": 0.00001000,
"errors": ""
}
9、创建钱包地址
omnicore-cli getnewaddress # mmRTfHS4M6jX3dq6Jrjxhca1yu1fhwDLwP
10、查看debug.log日志
#日志文件在同步路径下
cd /home/usdt/testnet3
tail -fn 400 debug.log
2019-08-27 09:58:18 UpdateTip: new best=00000000b873e79784647a6c82962c70d228557d24a747ea4d1b8bbe878e1206 height=1 version=0x00000001 log2_work=33.000022 tx=2 date='2011-02-02 23:22:08' progress=0.000001 cache=0.0MiB(1tx)
2019-08-27 09:58:18 UpdateTip: new best=000000006c02c8ea6e4ff69651f7fcde348fb9d557a06e6957b65552002a7820 height=2 version=0x00000001 log2_work=33.584985 tx=3 date='2011-02-02 23:22:26' progress=0.000001 cache=0.0MiB(2tx)
2019-08-27 09:58:18 UpdateTip: new best=000000008b896e272758da5297bcd98fdc6d97c9b765ecec401e286dc1fdbe10 height=3 version=0x00000001 log2_work=34.000022 tx=4 date='2011-02-02 23:23:50' progress=0.000001 cache=0.0MiB(3tx)
2019-08-27 09:58:18 UpdateTip: new best=000000008b5d0af9ffb1741e38b17b193bd12d7683401cecd2fd94f548b6e5dd height=4 version=0x00000001 log2_work=34.32195 tx=5 date='2011-02-02 23:24:26' progress=0.000001 cache=0.0MiB(4tx)
2019-08-27 09:58:18 UpdateTip: new best=00000000bc45ac875fbd34f43f7732789b6ec4e8b5974b4406664a75d43b21a1 height=5 version=0x00000001 log2_work=34.584985 tx=6 date='2011-02-02 23:26:16' progress=0.000002 cache=0.0MiB(5tx)
Last updated