From 50af8e0de947a69f84f3f9e7be260d9ffda363bc Mon Sep 17 00:00:00 2001 From: Minh Doan Date: Thu, 6 Dec 2018 23:23:40 -0800 Subject: [PATCH] cleanup and move run-beacon into beaconchain folder --- beaconchain/{ => libs}/beaconchain.go | 0 beaconchain/{ => libs}/beaconchain_handler.go | 0 beaconchain/{ => libs}/beaconchain_test.go | 0 runbeacon/run-beacon.go => beaconchain/main/main.go | 2 +- deploy.sh | 2 +- 5 files changed, 2 insertions(+), 2 deletions(-) rename beaconchain/{ => libs}/beaconchain.go (100%) rename beaconchain/{ => libs}/beaconchain_handler.go (100%) rename beaconchain/{ => libs}/beaconchain_test.go (100%) rename runbeacon/run-beacon.go => beaconchain/main/main.go (92%) diff --git a/beaconchain/beaconchain.go b/beaconchain/libs/beaconchain.go similarity index 100% rename from beaconchain/beaconchain.go rename to beaconchain/libs/beaconchain.go diff --git a/beaconchain/beaconchain_handler.go b/beaconchain/libs/beaconchain_handler.go similarity index 100% rename from beaconchain/beaconchain_handler.go rename to beaconchain/libs/beaconchain_handler.go diff --git a/beaconchain/beaconchain_test.go b/beaconchain/libs/beaconchain_test.go similarity index 100% rename from beaconchain/beaconchain_test.go rename to beaconchain/libs/beaconchain_test.go diff --git a/runbeacon/run-beacon.go b/beaconchain/main/main.go similarity index 92% rename from runbeacon/run-beacon.go rename to beaconchain/main/main.go index 9500541a9..69f78e3a8 100644 --- a/runbeacon/run-beacon.go +++ b/beaconchain/main/main.go @@ -6,7 +6,7 @@ import ( "os" "path" - "github.com/harmony-one/harmony/beaconchain" + beaconchain "github.com/harmony-one/harmony/beaconchain/libs" "github.com/harmony-one/harmony/log" ) diff --git a/deploy.sh b/deploy.sh index bf2715403..00073b59b 100755 --- a/deploy.sh +++ b/deploy.sh @@ -75,7 +75,7 @@ cleanup echo "compiling ..." go build -o bin/benchmark go build -o bin/txgen client/txgen/main.go -go build -o bin/beacon runbeacon/run-beacon.go +go build -o bin/beacon beaconchain/main/main.go # Create a tmp folder for logs t=`date +"%Y%m%d-%H%M%S"`