Skip to content

1.下载

https://www.omnilayer.org/download.html
或者
https://github.com/OmniLayer/omnicore/releases    #这个需要编译
https://www.omnilayer.org/download.html
或者
https://github.com/OmniLayer/omnicore/releases    #这个需要编译

2.安装

  • ubuntu18_x64
apt-get update
apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
apt-get install libboost-all-dev
apt-get update
apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
apt-get install libboost-all-dev

3.编写配置文件

cat /data/apps/omnicore-0.5.0/etc/bitcoin.conf

rpcuser=111
rpcpassword=222
rpcport=28832
port=28833
bindip=172.31.32.94
rpcallowip=x.x.x.x
datadir=/data/coin/usdt/
daemon=1
server=1
#reindex=1
#reindex-chainstate=1
txindex=1

#解释:
# 测试链填 1 主链填 0 
testnet=1

#代表事务初始索引,查看所有交易
txindex=1

#监听模式,默认启动
listen=1 

#允许bitcoin接收JSON-RPC
server=1  

#RPC用户名
rpcuser=bindip

#RPC密码
rpcpassword=12

#RPC端口
rpcport=8888

#允许RPC访问ip
rpcallowip=192.168.23.210  #代表允许访问钱包的ip地址及端口
cat /data/apps/omnicore-0.5.0/etc/bitcoin.conf

rpcuser=111
rpcpassword=222
rpcport=28832
port=28833
bindip=172.31.32.94
rpcallowip=x.x.x.x
datadir=/data/coin/usdt/
daemon=1
server=1
#reindex=1
#reindex-chainstate=1
txindex=1

#解释:
# 测试链填 1 主链填 0 
testnet=1

#代表事务初始索引,查看所有交易
txindex=1

#监听模式,默认启动
listen=1 

#允许bitcoin接收JSON-RPC
server=1  

#RPC用户名
rpcuser=bindip

#RPC密码
rpcpassword=12

#RPC端口
rpcport=8888

#允许RPC访问ip
rpcallowip=192.168.23.210  #代表允许访问钱包的ip地址及端口
  • 正式配置
rpcuser=omn
rpcpassword=MeVz4mcTbECaf8YkWKYxdhh
rpcport=28832
port=28833
bindip=0.0.0.0
rpcbind=0.0.0.0
rpcallowip=0.0.0.0/0
datadir=/data/coin/usdt/
daemon=1
server=1
#reindex=1
#reindex-chainstate=1
txindex=1
rpcuser=omn
rpcpassword=MeVz4mcTbECaf8YkWKYxdhh
rpcport=28832
port=28833
bindip=0.0.0.0
rpcbind=0.0.0.0
rpcallowip=0.0.0.0/0
datadir=/data/coin/usdt/
daemon=1
server=1
#reindex=1
#reindex-chainstate=1
txindex=1

4.启动

./bin/omnicored -conf=/data/apps/omnicore-0.5.0/etc/bitcoin.conf --datadir=/data/coin/usdt

#解释:
--datadir  指定路径,默认在/root/.bitcoin
./bin/omnicored -conf=/data/apps/omnicore-0.5.0/etc/bitcoin.conf --datadir=/data/coin/usdt

#解释:
--datadir  指定路径,默认在/root/.bitcoin
  • 查看启动现象
root@ip-172-31-32-94:/data/coin/usdt# tail debug.log  
2019-11-12 10:05:32 UpdateTip: new best=00000000000000000006f8927734bdf657972f1f3167afe35929af86e4fdd855 height=603444 version=0x20800000 log2_work=91.325046 tx=473909927 date='2019-11-12 10:05:15' progress=1.000000 cache=202.8MiB(160797tx) warning='61 of last 100 blocks have unexpected version'
root@ip-172-31-32-94:/data/coin/usdt# tail debug.log  
2019-11-12 10:05:32 UpdateTip: new best=00000000000000000006f8927734bdf657972f1f3167afe35929af86e4fdd855 height=603444 version=0x20800000 log2_work=91.325046 tx=473909927 date='2019-11-12 10:05:15' progress=1.000000 cache=202.8MiB(160797tx) warning='61 of last 100 blocks have unexpected version'

5.关闭

curl --user omn --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "stop", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:28832
curl --user omn --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "stop", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:28832