typos/bad code removed

pull/6/head
alok 7 years ago
parent 2228801e10
commit 5185e0aff1
  1. 2
      aws-code/transaction_generator.go
  2. 5
      aws-scripts/preprocess_peerlist.py
  3. 6
      deploy_one_instance.sh
  4. 3
      global_nodes.txt

@ -66,9 +66,9 @@ func main() {
configFile := flag.String("config_file", "global_nodes.txt", "file containing all ip addresses and config")
flag.Parse()
config := readConfigFile(*configFile)
totalTime := 60.0
time.Sleep(totalTime) //Sleep Time to let all instances come up
start := time.Now()
totalTime := 60.0
txs := make([]blockchain.Transaction, 10)
leaders := getLeaders(&config)
for true {

@ -3,11 +3,12 @@ amazon_ipv4_url = "http://169.254.169.254/latest/meta-data/public-ipv4"
if __name__ == "__main__":
current_ip = requests.get(amazon_ipv4_url).text
f = open("global_nodes.txt",r)
peerList = []
for myline in f:
mylist = myline.split(" ")
ip = mylist[0]
node = mylist[2]
if ip != current_ip or node != "transaction":
if node != "transaction":
peerList.append(myline)
else:
h = open("isTransaction.txt",w)
@ -15,7 +16,7 @@ if __name__ == "__main__":
h.close()
f.close()
g = open("global_peerlist.txt",w)
for myline peerList:
for myline in peerList:
g.write(myline)
g.close()

@ -15,8 +15,6 @@ FILE='isTransaction.txt'
config=$1
if [ -f $FILE ]; then
go run ./aws-code/transaction_generator.go -config_file $config
else:
else
go run ./benchmark_main.go -config_file $config&
fi

@ -0,0 +1,3 @@
35.160.197.62 9000 validator 0
54.68.213.133 9000 leader 0
34.216.209.90 9000 transaction 0
Loading…
Cancel
Save