Skip to content

Commit

Permalink
fix newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
jredbeard committed Aug 17, 2018
1 parent 2f949f4 commit 79a9385
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions contrib/testnetinit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ chown steemd:steemd $HOME/testnet_datadir/config.ini

cd $HOME

echo -en '\nchain-id = $CHAIN_ID' >> config.ini
echo -en '\nchain-id = $CHAIN_ID' >> testnet_datadir/config.ini
echo -en '\n' >> config.ini
echo -en '\n' >> testnet_datadir/config.ini

echo chain-id = $CHAIN_ID >> config.ini
echo chain-id = $CHAIN_ID >> testnet_datadir/config.ini

echo -en '\n' >> config.ini
echo -en '\n' >> testnet_datadir/config.ini

mv /etc/nginx/nginx.conf /etc/nginx/nginx.original.conf
cp /etc/nginx/steemd.nginx.conf /etc/nginx/nginx.conf
Expand Down Expand Up @@ -79,13 +85,15 @@ echo steemd-testnet: pipelining transactions into fastgen node, this may take so
cat txgen.list \
) | \
tinman keysub --get-dev-key $UTILS/get_dev_key | \
tinman submit --realtime -t http://127.0.0.1:9990 --signer $UTILS/sign_transaction -f fail.json
tinman submit --realtime -t http://127.0.0.1:9990 --signer $UTILS/sign_transaction -f fail.json &

sleep 120

# add witness names to config file
i=0 ; while [ $i -lt 21 ] ; do echo witness = '"'init-$i'"' >> config.ini ; let i=i+1 ; done

# add keys derived from shared secret to config file
$UTILS/get_dev_key $SHARED_SECRET init-0:21 | cut -d '"' -f 4 | sed 's/^/private-key = /' >> config.ini
$UTILS/get_dev_key $SHARED_SECRET block-init-0:21 | cut -d '"' -f 4 | sed 's/^/private-key = /' >> config.ini

# let's get going
echo steemd-testnet: bringing up witness / full node
Expand Down

0 comments on commit 79a9385

Please sign in to comment.