Bump Tendermint v0.33.4 (#6055)

* Bump go.{mod,sum}

* Update APIs from Tendermint

* Add max clock drift to client state

* Test updates

* Update APIs from Tendermint

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
Alexander Bezobchuk
2020-04-22 19:21:48 +00:00
committed by GitHub
co-authored by Federico Kunze
parent 550c3e9ef0
commit 72a2dae3db
27 changed files with 249 additions and 122 deletions
+3 -4
View File
@@ -10,8 +10,7 @@ import (
"time"
"github.com/stretchr/testify/require"
tmclient "github.com/tendermint/tendermint/rpc/client"
rpchttp "github.com/tendermint/tendermint/rpc/client/http"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
rpcclient "github.com/tendermint/tendermint/rpc/lib/client"
@@ -29,7 +28,7 @@ func WaitForNextHeightTM(port string) {
func WaitForNextNBlocksTM(n int64, port string) {
// get the latest block and wait for n more
url := fmt.Sprintf("http://localhost:%v", port)
cl, err := tmclient.NewHTTP(url, "/websocket")
cl, err := rpchttp.New(url, "/websocket")
if err != nil {
panic(fmt.Sprintf("failed to create Tendermint HTTP client: %s", err))
}
@@ -56,7 +55,7 @@ func WaitForHeightTM(height int64, port string) {
}
func waitForHeightTM(height int64, url string) {
cl, err := tmclient.NewHTTP(url, "/websocket")
cl, err := rpchttp.New(url, "/websocket")
if err != nil {
panic(fmt.Sprintf("failed to create Tendermint HTTP client: %s", err))
}