generate the nodekey
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
FROM golang:1.19-alpine as builder
|
FROM golang:1.19-alpine as builder
|
||||||
|
|
||||||
# Install packages we need
|
# Install packages we need
|
||||||
RUN apk add --no-cache make gcc musl-dev linux-headers git
|
RUN apk add --no-cache make gcc musl-dev linux-headers git openssl
|
||||||
|
|
||||||
# Make a folder to work in
|
# Make a folder to work in
|
||||||
RUN mkdir /fantom
|
RUN mkdir /fantom
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ fi
|
|||||||
# uncomment the next line and do docker-compose build in case you have to try to fix the db after unclean shutdown etc.
|
# uncomment the next line and do docker-compose build in case you have to try to fix the db after unclean shutdown etc.
|
||||||
# opera --db.preset pbl-1 --datadir=$FANTOM_HOME db heal --experimental
|
# opera --db.preset pbl-1 --datadir=$FANTOM_HOME db heal --experimental
|
||||||
|
|
||||||
|
[ -f /config/nodekey ] || openssl rand -hex 32 > /config/nodekey
|
||||||
|
|
||||||
opera \
|
opera \
|
||||||
--genesis=$FANTOM_HOME/mainnet-171200-no-history.g \
|
--genesis=$FANTOM_HOME/mainnet-171200-no-history.g \
|
||||||
--port=19921 \
|
--port=19921 \
|
||||||
|
|||||||
Reference in New Issue
Block a user