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
|
||||
docker run \
|
||||
--name sneak-steemd \
|
||||
-e STEEMD_MINING_THREADS=$(STEEMD_MINING_THREADS) \
|
||||
-e STEEMD_WITNESS_NAME=$(STEEMD_WITNESS_NAME) \
|
||||
-e STEEMD_MINER_NAME=$(STEEMD_MINER_NAME) \
|
||||
-e STEEMD_PRIVATE_KEY=$(STEEMD_PRIVATE_KEY) \
|
||||
|
13
steemd.run
13
steemd.run
@ -18,10 +18,20 @@ SEED_NODES="
|
||||
seed.steemwitness.com:2001
|
||||
steem-seed1.abit-more.com:2001
|
||||
"
|
||||
|
||||
ARGS=""
|
||||
|
||||
if [[ -z "$STEEMD_SEED_NODES" ]]; then
|
||||
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
|
||||
ARGS+=" --witness=\"$STEEMD_WITNESS_NAME\""
|
||||
@ -29,14 +39,13 @@ fi
|
||||
|
||||
if [[ ! -z "$STEEMD_MINER_NAME" ]]; then
|
||||
ARGS+=" --miner=[\"$STEEMD_MINER_NAME\",\"$STEEMD_PRIVATE_KEY\"]"
|
||||
ARGS+=" --mining-threads=${STEEMD_MINING_THREADS:-8}"
|
||||
fi
|
||||
|
||||
if [[ ! -z "$STEEMD_PRIVATE_KEY" ]]; then
|
||||
ARGS+=" --private-key=$STEEMD_PRIVATE_KEY"
|
||||
fi
|
||||
|
||||
ARGS+=" --mining-threads=${STEEMD_MINING_THREADS:-8}"
|
||||
|
||||
# without --data-dir it uses cwd as datadir(!)
|
||||
# who knows what else it dumps into current dir
|
||||
cd $HOME
|
||||
|
Loading…
Reference in New Issue
Block a user