diff --git a/internal/beaconchain/libs/beaconchain.go b/internal/beaconchain/libs/beaconchain.go index a2d7c5171..e069571f7 100644 --- a/internal/beaconchain/libs/beaconchain.go +++ b/internal/beaconchain/libs/beaconchain.go @@ -54,6 +54,7 @@ type BeaconChain struct { rpcServer *beaconchain.Server } +//SaveFile is to store the file in which beaconchain info will be stored. var SaveFile string // Followings are the set of states of that beaconchain can be in. @@ -184,6 +185,7 @@ func BCItoBC(bci *BCInfo) *BeaconChain { return bc } +//SetSaveFile sets the filepath where beaconchain will be saved func SetSaveFile(path string) { SaveFile = path } diff --git a/scripts/travis_checker.sh b/scripts/travis_checker.sh index 1e01e9f5c..8adf904f6 100755 --- a/scripts/travis_checker.sh +++ b/scripts/travis_checker.sh @@ -11,6 +11,7 @@ if [ $(golint ./... | wc | awk '{print $1}') -gt 2 ]; then exit 1 fi if [ -n "$(gofmt -l .)" ]; then + echo "go fmt error" echo "Go code is not formatted:" gofmt -d . exit 1