Clean up testing code

pull/148/head
Rongjian Lan 6 years ago
parent 2a8f65db60
commit 167e4462a7
  1. 1
      benchmark.go
  2. 6
      deploy.sh

@ -227,7 +227,6 @@ func main() {
go currentNode.SupportSyncing() go currentNode.SupportSyncing()
if consensus.IsLeader { if consensus.IsLeader {
fmt.Println("I AM LEADER>.............")
go currentNode.SupportClient() go currentNode.SupportClient()
} }
currentNode.StartServer() currentNode.StartServer()

@ -51,7 +51,7 @@ EOU
PEER=-peer_discovery PEER=-peer_discovery
DB= DB=
TXGEN=false TXGEN=true
DURATION=90 DURATION=90
MIN=5 MIN=5
SHARDS=2 SHARDS=2
@ -120,7 +120,7 @@ done < $config
# Emulate node offline # Emulate node offline
(sleep 45; killnode $KILLPORT) & (sleep 45; killnode $KILLPORT) &
echo "launching txgen ..." echo "launching txgen ..."Z
if [ "$TXGEN" == "true" ]; then if [ "$TXGEN" == "true" ]; then
echo "launching txgen ..." echo "launching txgen ..."
if [ -z "$PEER" ]; then if [ -z "$PEER" ]; then
@ -130,4 +130,4 @@ if [ "$TXGEN" == "true" ]; then
fi fi
fi fi
# cleanup cleanup

Loading…
Cancel
Save