From 9cb0552b723549a0aca228329c284a4f720727db Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Thu, 3 Jan 2019 02:23:12 +0000 Subject: [PATCH] move client/txgen to cmd/client/txgen change build scripts accordingly Signed-off-by: Leo Chen --- {client => cmd/client}/txgen/main.go | 2 +- {client => cmd/client}/txgen/txgen/account_txs_generator.go | 0 go_executable_build.sh | 2 +- test/deploy.sh | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename {client => cmd/client}/txgen/main.go (99%) rename {client => cmd/client}/txgen/txgen/account_txs_generator.go (100%) diff --git a/client/txgen/main.go b/cmd/client/txgen/main.go similarity index 99% rename from client/txgen/main.go rename to cmd/client/txgen/main.go index 22b23657e..82315f27b 100644 --- a/client/txgen/main.go +++ b/cmd/client/txgen/main.go @@ -11,7 +11,7 @@ import ( proto_node "github.com/harmony-one/harmony/api/proto/node" "github.com/harmony-one/harmony/client" - "github.com/harmony-one/harmony/client/txgen/txgen" + "github.com/harmony-one/harmony/cmd/client/txgen/txgen" "github.com/harmony-one/harmony/consensus" "github.com/harmony-one/harmony/core/types" "github.com/harmony-one/harmony/internal/newnode" diff --git a/client/txgen/txgen/account_txs_generator.go b/cmd/client/txgen/txgen/account_txs_generator.go similarity index 100% rename from client/txgen/txgen/account_txs_generator.go rename to cmd/client/txgen/txgen/account_txs_generator.go diff --git a/go_executable_build.sh b/go_executable_build.sh index 5151e1ca6..54d6c0940 100755 --- a/go_executable_build.sh +++ b/go_executable_build.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash declare -A SRC SRC[benchmark]=benchmark.go -SRC[txgen]=client/txgen/main.go +SRC[txgen]=cmd/client/txgen/main.go SRC[beacon]=cmd/beaconchain/main.go SRC[wallet]=client/wallet/main.go diff --git a/test/deploy.sh b/test/deploy.sh index 46a576c25..4ad223d98 100755 --- a/test/deploy.sh +++ b/test/deploy.sh @@ -88,7 +88,7 @@ cleanup pushd $ROOT echo "compiling ..." go build -o bin/benchmark -go build -o bin/txgen client/txgen/main.go +go build -o bin/txgen cmd/client/txgen/main.go go build -o bin/beacon cmd/beaconchain/main.go popd