Omni full node structures

Omni Overview

  Omni BTC token is a protocol that relies on the storage node BTC, using OP_RETURN field characteristics. BTC package deal itself does not validate the protocol, which means that although the transaction was recorded BTC packed, but not necessarily successful transaction, which is Omni agreement is only by means of BTC books store only.

 

Omni acquisition path based on the transaction protocol

Setting up an Omni node, the node will authenticate the transaction, and the transaction state has, the protocol analysis and visualization Json format.

2. You can get books from BTC in their own parsing and validation.


Links
- Omni node Source: HTTPS: //github.com/OmniLayer/omnicore
- Omni Block browser: HTTPS: //omniexplorer.info
- Omni so RPC Interface Description: https: //github.com/OmniLayer/ omnicore / blob / master / src / omnicore / doc / rpc-api.md

install the necessary expansion
yum-y install nodejs git wget vim goaccess gcc gcc-c ++ autoconf automake make pcrepcre-devel zlib zlib-devel libxml2 libxml2-devel openssl openssl-devel gdlibjpeg libjpeg-devel libpng libpng-devel libaio libtool boost boost-devel libevent-devel

installed database
to create the directory and download the
mkdir / Home / LPQ / libdb4
cd libdb4 /

- download file
wget http://dl.fedoraproject.org/ Pub / EPEL /. 7 / the x86_64 / the 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
http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libdb4-cxx-4.8.30-13.el7.x86_64.rpm wget
wget http://dl.fedoraproject.org/pub /epel/7/x86_64/Packages/l/libdb4-cxx-devel-4.8.30-13.el7.x86_64.rpm

- install the database
RPM -ivh libdb4-4.8.30-13.el7.x86_64.rpm
RPM -ivh devel-4.8.30-13.el7.x86_64.rpm-libdb4
RPM -ivhlibdb4-Cxx-4.8.30-13.el7.x86_64.rpm
RPM -ivhlibdb4-Cxx-devel-4.8.30-13.el7.x86_64. rpm

Download omnicore purse Source
git clone https://github.com/OmniLayer/omnicore.git

installation
Note: compile-time warning can be ignored

cd omnicore /
./autogen.sh
./configure
the make
the make install

Creating node configuration
Note: create a configuration to file in / home / [current user] / bitcoin / bitcoin.conf configure, or follow some commands will not find the configuration file.

bitcoin.conf configuration is as follows:

datadir = / data / omni / usdt / blocks # data storage directory
daemon = 1 # running in the background
txindex = 1 # All transactions are indexed; otherwise, leaving only the purse address trade index recorded
deprecatedrpc = addwitnessaddress
Server = 1 # open RPC access
rpcbind = 0.0 .0.0
rpcport = 8336
rpcuser = usdtRPC
rpcpassword = usdtRPCpwd
rpcallowip = 0.0.0.0 / 0 # ip not restrict or specify ip

configuration file reference article:
https://blog.csdn.net/zs345048102/article/details/95223446
HTTPS: //blog.csdn.net/SIMBA1949/article/details/100216934

start
cd / home / lpq / omnicored / src

startup command
./omnicored -conf = / home / lipanquan / .bitcoin / bitcoin.conf

If the configuration file is not specified data directory is a start command
./omnicored -conf = / home / lipanquan / .bitcoin / bitcoin.conf -datadir = / home / lpq / usdt / data

common RPC View command
cd / home / lpq / omnicored / src

view the synchronization status
./omnicore-cli "omni_getinfo"

get block transaction information
./omnicore-cli "omni_listblocktransactions" 283729


Gets transaction details
./omnicore-cli "omni_gettransaction" "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"

 

Guess you like

Origin www.cnblogs.com/wf-l5201314/p/11969636.html