diff --git a/contrib/testnetinit.sh b/contrib/testnetinit.sh index 6e132a5fa8..ac38a7f4d5 100644 --- a/contrib/testnetinit.sh +++ b/contrib/testnetinit.sh @@ -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 @@ -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