How to Set Up OMC Node
A full node is a program that fully validates transactions and blocks. By running it, you are supporting the OMC blockchain network to become more decentralised and fostering the growth of OMC Blockchain Technology.
Almost all full nodes also help the network by accepting transactions and blocks from other full nodes, validating those transactions and blocks, and then relaying them to further full nodes.
Most full nodes also serve lightweight clients by allowing them to transmit their transactions to the network and by notifying them when a transaction affects their wallet. If not enough nodes perform this function, clients won’t be able to connect through the peer-to-peer network—they’ll have to use centralized services instead.
Open browser and enter https://dotnet.microsoft.com/download/linux-package-manager/rhel/runtime-2.1.11
Please select your operating system and follow the operation prompts to install .Net Core 2.1 Runtime as shown in the figure below:
Open browser and enter https://dotnet.microsoft.com/download/dotnet-core/2.1 As shown in the red box below, select the operating system to which it belongs, and click the corresponding hyperlink to download the installation file. After the download is complete, install it according to the standard installation operation of the system.
Open in browser https://github.com/omcdev/blockchain/releases/download/0.0.3/Node_V0.0.3.zip or https://onedrive.live.com/?authkey=%21AIJY8v0FWzmHAbA&id=A28FC3201AF2AC9A%211085&cid=A28FC3201AF2AC9A or select the latest version as shown in the figure below and continue to click in. The current version is 0.0.3
Select node compressed package in zip format and download
Unzip the Node package to the folder of your choice, for example
- D: \ OmcNode under Windows,
- ~ / OmcNode under Linux.
From the command line/terminal, cd into the folder where the Node program is located, and then run the command: dotnet OmniCoin.Node.dll
Running the above command under Linux may cause an error, the specific reason may be the lack of Leveldb environment. Please follow the steps below to install the Leveldb environment. After successful installation, return to the Node folder and run dotnet OmniCoin.Node.dll
If the operating system is Linux, you also need to manually install Leveldb.Download Leveldb Source Code and Compile
If no error is reported during cmake compilation, Leveldb compilation and installation are successful.Possible Problems with Ubuntu
Prompt “Command ‘cmake’ not found, but can be installed with: sudo apt install cmake”
Execute the command to install cmake from the root account:
Non-root account execute command to install cmake:
Prompt cmake version is too low, you need to manually install cmake 3.9.1
Download and unzip the cmake 3.9.1 compressed package to the Home directory
Add ~ / cmake-3.9.1-Linux-x86_64 / bin to the environment variable of the shell (default bash)
Add the path of cmake bin folder to the last line, and save and exit the editor
Update environment variables
Verify that the installation is successful. If the result of the following command is cmake verison 3.9.1, the installation is successful. If it is not, it indicates that the installation failed.Possible problems with Centos system
Running dotnet OmniCoin.Node.dll directly under Centos reports an error, the error message may be as follows
“Unable to load shared library ‘leveldb.dll’ or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libleveldb.dll: cannot open shared object file: No such file or directory”
In the terminal, enter the Node folder path \runtimes\linux-x64\native, execute ldd leveldb.dll, and the related information obtained indicates that the two dependent packages are missing, and these two dependent packages are caused by the gcc version is too low, so need to Upgrade gcc.Upgrade GCC (eg gcc-8.3.0)
make # This command may take about 1 hour to execute, please be patient
If the version number obtained by the above command is not currently installed 8.3.0, you need to modify the configuration fileGLIBCXX_3.4.2X is missing
In the terminal, enter the path of Node folder \runtimes\linux-x64\native, execute ldd leveldb.dll, GLIBCXX_3.4.2X may still be missing, the following is the solution:
In the terminal, enter the Node folder path \runtimes\linux-x64\native, execute ldd leveldb.dll, and find that all the dependencies are available. At this point the Leveldb environment under CentOS7 is completely complete.