updated for seed/miner split
This commit is contained in:
parent
da0f85d2e7
commit
1c295a5f2e
1
Makefile
1
Makefile
@ -14,6 +14,7 @@ build: kill
|
|||||||
run: kill
|
run: kill
|
||||||
docker run \
|
docker run \
|
||||||
--name sneak-steemd \
|
--name sneak-steemd \
|
||||||
|
-e STEEMD_MINING_THREADS=$(STEEMD_MINING_THREADS) \
|
||||||
-e STEEMD_WITNESS_NAME=$(STEEMD_WITNESS_NAME) \
|
-e STEEMD_WITNESS_NAME=$(STEEMD_WITNESS_NAME) \
|
||||||
-e STEEMD_MINER_NAME=$(STEEMD_MINER_NAME) \
|
-e STEEMD_MINER_NAME=$(STEEMD_MINER_NAME) \
|
||||||
-e STEEMD_PRIVATE_KEY=$(STEEMD_PRIVATE_KEY) \
|
-e STEEMD_PRIVATE_KEY=$(STEEMD_PRIVATE_KEY) \
|
||||||
|
19
steemd.run
19
steemd.run
@ -18,10 +18,20 @@ SEED_NODES="
|
|||||||
seed.steemwitness.com:2001
|
seed.steemwitness.com:2001
|
||||||
steem-seed1.abit-more.com:2001
|
steem-seed1.abit-more.com:2001
|
||||||
"
|
"
|
||||||
|
|
||||||
ARGS=""
|
ARGS=""
|
||||||
for NODE in $SEED_NODES ; do
|
|
||||||
ARGS+=" --seed-node=$NODE"
|
if [[ -z "$STEEMD_SEED_NODES" ]]; then
|
||||||
done
|
for NODE in $SEED_NODES ; do
|
||||||
|
ARGS+=" --seed-node=$NODE"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -z "$STEEMD_SEED_NODES" ]]; then
|
||||||
|
for NODE in $STEEMD_SEED_NODES ; do
|
||||||
|
ARGS+=" --seed-node=$NODE"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ ! -z "$STEEMD_WITNESS_NAME" ]]; then
|
if [[ ! -z "$STEEMD_WITNESS_NAME" ]]; then
|
||||||
ARGS+=" --witness=\"$STEEMD_WITNESS_NAME\""
|
ARGS+=" --witness=\"$STEEMD_WITNESS_NAME\""
|
||||||
@ -29,14 +39,13 @@ fi
|
|||||||
|
|
||||||
if [[ ! -z "$STEEMD_MINER_NAME" ]]; then
|
if [[ ! -z "$STEEMD_MINER_NAME" ]]; then
|
||||||
ARGS+=" --miner=[\"$STEEMD_MINER_NAME\",\"$STEEMD_PRIVATE_KEY\"]"
|
ARGS+=" --miner=[\"$STEEMD_MINER_NAME\",\"$STEEMD_PRIVATE_KEY\"]"
|
||||||
|
ARGS+=" --mining-threads=${STEEMD_MINING_THREADS:-8}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -z "$STEEMD_PRIVATE_KEY" ]]; then
|
if [[ ! -z "$STEEMD_PRIVATE_KEY" ]]; then
|
||||||
ARGS+=" --private-key=$STEEMD_PRIVATE_KEY"
|
ARGS+=" --private-key=$STEEMD_PRIVATE_KEY"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ARGS+=" --mining-threads=${STEEMD_MINING_THREADS:-8}"
|
|
||||||
|
|
||||||
# without --data-dir it uses cwd as datadir(!)
|
# without --data-dir it uses cwd as datadir(!)
|
||||||
# who knows what else it dumps into current dir
|
# who knows what else it dumps into current dir
|
||||||
cd $HOME
|
cd $HOME
|
||||||
|
Loading…
Reference in New Issue
Block a user