Merge pull request #1285 from cosmos/bucky/fix-lint-comments

add comments
This commit is contained in:
Ethan Buchman 2018-06-15 23:59:35 -07:00 committed by GitHub
commit 55708dadbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -3,7 +3,7 @@ version: 2
defaults: &defaults defaults: &defaults
working_directory: /go/src/github.com/cosmos/cosmos-sdk working_directory: /go/src/github.com/cosmos/cosmos-sdk
docker: docker:
- image: circleci/golang:1.10.0 - image: circleci/golang:1.10.3
environment: environment:
GOBIN: /tmp/workspace/bin GOBIN: /tmp/workspace/bin

View File

@ -12,6 +12,8 @@ import (
rpcclient "github.com/tendermint/tendermint/rpc/lib/client" rpcclient "github.com/tendermint/tendermint/rpc/lib/client"
) )
// Wait for the next tendermint block from the Tendermint RPC
// on localhost
func WaitForNextHeightTM(port string) { func WaitForNextHeightTM(port string) {
url := fmt.Sprintf("http://localhost:%v", port) url := fmt.Sprintf("http://localhost:%v", port)
cl := tmclient.NewHTTP(url, "/websocket") cl := tmclient.NewHTTP(url, "/websocket")
@ -22,6 +24,8 @@ func WaitForNextHeightTM(port string) {
waitForHeightTM(resBlock.Block.Height+1, url) waitForHeightTM(resBlock.Block.Height+1, url)
} }
// Wait for the given height from the Tendermint RPC
// on localhost
func WaitForHeightTM(height int64, port string) { func WaitForHeightTM(height int64, port string) {
url := fmt.Sprintf("http://localhost:%v", port) url := fmt.Sprintf("http://localhost:%v", port)
waitForHeightTM(height, url) waitForHeightTM(height, url)
@ -54,7 +58,7 @@ func waitForHeightTM(height int64, url string) {
} }
} }
// Uses localhost // Wait for height from the LCD API on localhost
func WaitForHeight(height int64, port string) { func WaitForHeight(height int64, port string) {
url := fmt.Sprintf("http://localhost:%v/blocks/latest", port) url := fmt.Sprintf("http://localhost:%v/blocks/latest", port)
waitForHeight(height, url) waitForHeight(height, url)