omni节点搭建
# omni节点搭建
可以用作btc 和 usdt节点
docker run -d \
--restart always \
--name omnicore \
-p 8332:8332 -p 8333:8333 \
-v /omni-data/bitcoin.conf:/root/.bitcoin/bitcoin.conf \
-v /omni-data/data:/data \
jdkhome/omnicore:0.8.1 \
./omnicored --datadir=/data -txindex -server -rest -rpcallowip=0.0.0.0/0 -rpcbind -rpcuser=jdk -rpcpassword=1234abc
# 根据情况要是重启起不来可以在后面加个 -startclean
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
附上我的Dockerfile
FROM centos:7
MAINTAINER main@jdkhome.com
RUN mkdir /var/app
RUN yum -y install wget
RUN wget https://github.com/OmniLayer/omnicore/releases/download/v0.8.1/omnicore-0.8.1-x86_64-linux-gnu.tar.gz
RUN tar -zxvf omnicore-0.8.1-x86_64-linux-gnu.tar.gz -C /var/app
WORKDIR /var/app/omnicore-0.8.1/bin
CMD ["./omnicored","--datadir=/data/usdt","-txindex","-server","-rest","-rpcallowip=0.0.0.0/0","-startclean"]
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
# 相关资源
上次更新: 2020/06/10, 18:06:00