#### 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)
~~~
- Linux
- linux常用命令
- awk
- cp
- scp
- mv
- screen工具
- rsync
- Linux设置静态IP
- vim常用
- ssh免密登录
- linux挂载磁盘和开机自动挂载
- 文件的时间戳
- 重定向
- 防火墙
- Vultr 服务器利用快照更换IP
- ss
- node-yarn
- ES安装向导
- lnmp/lamp
- windows安装mysql
- windows安装nginx
- Let'sEncrypt 免费通配符/泛域名SSL证书
- 开机自动挂载硬盘
- 普通用户提权
- ELK日志分析系统
- Docker
- docker
- centos7安装docker
- Centos7安装redis
- CentOS 7 使用Docker搭建Nginx
- CentOS 7 使用Docker搭建Jenkins
- CentOS 7 使用Docker搭建Zookeeper
- CentOS 7 使用Docker搭建Tomcat
- CentOS 7 使用Docker搭建Mysql
- CentOS 7 使用Docker搭建PHP环境
- 使用docker搭建Swagger
- docker阿里云私有仓库
- docker zookeeper集群
- docker部署ES
- docker之java容器运行外置springboot-jar
- docker部署owncloud云盘
- ETCD
- centos7部署etcd节点
- Dockerfile
- Docker-compose
- gitlab.yml
- db.yml
- 安装docker-compose
- gitlab-docker-compose.yml
- nginx-docker-compose.yml
- Mysql
- mysql开启远程访问及相关权限控制
- mysql授权
- mysql快速导出导入大数据
- mysql单机备份
- binlog日志
- shell
- 经典案例
- 俄罗斯方块游戏
- 系统初始化
- 服务器监控
- go基础环境
- shell.监控日志.elk
- shell.检查各服务脚本
- shell.删除文件脚本
- shell.守护进程
- shell.数据库
- shell.Ansible
- shell.dev
- shell.ftp环境
- shell.docker环境
- shell.k8s环境
- k8s.二进制安装
- K8s.一主多从
- k8s.三主两从高可用
- k8s.检查服务与配置
- k8s.jenkins
- k8s.gitlab
- go-install.sh
- jenkins-install.sh
- node-install.sh
- redis-install.sh
- zabbix-install.sh
- zabbix-dockerfile.sh
- nginx-install.sh
- shell变量
- 用户自定义变量
- 环境变量
- shell特殊变量
- shell条件判断
- 流程控制
- shell运算符
- Shell _printf
- shell_test
- shell函数
- 输出重定向
- 网络相关
- 安全相关
- 堡垒机部署
- 区块链威胁情报共享平台
- 签名与验签
- 浅谈区块链
- 智能合约
- 黄金币GTF智能合约
- 节点
- 以太坊公链私链geth同步
- 比特节点同步
- BTC节点错误解决方法
- eth硬分叉
- omni钱包节点搭建
- 架构
- K8s
- 搭建k8s集群完整篇
- 二进制部署k8s
- Devops
- git
- Jenkins
- svn
- 禅道
- CI/CD
- docker+jenkins+golang持续集成持续交付(CI/CD)
- 项目部署
- config.env
- docker-compose.yml
- Dockerfile模板
- .dockerignore
- run.sh
- nginx.conf模板
- 跨域
- jenkins配置
- 测试
- Python