跳至主要內容

Omni

naijoug小于 1 分钟

reference

Install

# 下载源码
$ git clone https://github.com/OmniLayer/omnicore.git
# 下载依赖 : 同 bitcoin 项目一样,之前编译过 bitcoin 项目不需要重复下载
# 编译
$ ./autogen.sh
$ ./configure
$ ./configure -without-gui # 不编译 GUI 界面的 Qt 客户端
$ make
$ make install

macOS make 编译报错

  • miner.h & txmempool.h 中函数报错

    Solution : 报错函数尾部添加 const

Usage

$ omnicored # 启动主网
$ omnicored -conf=PATH/TO/bitcon.conf -datadir=/PATH/TO/DATADIR & # 配置文件启动
# Options
#       -conf : 配置文件
#       -datadir : 数据目录
#       -reindex : 重建索引
#       -txindex : 是否全交易索引(默认: 0, 1: 全交易索引)
server=1
rpcuser=omnicorerpc
rpcpassword=5hMTZI9iBGFqKxsWfOUF
rpcallowip=127.0.0.1
rpcport=8332
txindex=1
datacarriersize=80
logtimestamps=1
omnidebug=tally
omnidebug=packets
omnidebug=pending