updated for seed/miner split

This commit is contained in:
Jeffrey Paul 2016-08-27 02:54:16 +02:00
parent da0f85d2e7
commit 1c295a5f2e
2 changed files with 15 additions and 5 deletions

View File

@ -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) \

View File

@ -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
if [[ -z "$STEEMD_SEED_NODES" ]]; then
for NODE in $SEED_NODES ; do
ARGS+=" --seed-node=$NODE" ARGS+=" --seed-node=$NODE"
done 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