From 3fb20b4a4a3d103b0a3ef41ae75c556685c6ab6c Mon Sep 17 00:00:00 2001 From: alok Date: Fri, 15 Jun 2018 20:47:01 -0700 Subject: [PATCH] some typos added changes to deploy linux --- aws-code/transaction_generator.go | 1 - deploy_linux.sh | 1 + node/node.go | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/aws-code/transaction_generator.go b/aws-code/transaction_generator.go index 8cdbc38fa..2cb8de967 100644 --- a/aws-code/transaction_generator.go +++ b/aws-code/transaction_generator.go @@ -46,7 +46,6 @@ func main() { start := time.Now() totalTime := 60.0 txs := make([]blockchain.Transaction, 10) - txCount := 0 for true { t := time.Now() if t.Sub(start).Seconds() >= totalTime { diff --git a/deploy_linux.sh b/deploy_linux.sh index 5449c2900..655a1cad3 100755 --- a/deploy_linux.sh +++ b/deploy_linux.sh @@ -19,3 +19,4 @@ while read ip port mode; do #echo $ip $port $mode $ipfile go run ./benchmark_main.go -ip $ip -port $port -ipfile $ipfile& done < $ipfile +go run ./aws-code/transaction_generator.go -ipfile $ipfile diff --git a/node/node.go b/node/node.go index 116faa792..f14f8cc8b 100644 --- a/node/node.go +++ b/node/node.go @@ -15,7 +15,6 @@ import ( // A node represents a program (machine) participating in the network type Node struct { - consensus *consensus.Consensus consensus *consensus.Consensus BlockChannel chan blockchain.Block pendingTransactions []blockchain.Transaction