From f32e6c9b7d22de48f9b94c24bbf23781fe986608 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Mon, 24 Jul 2017 10:31:51 -0400 Subject: [PATCH] Updated light-client --- client/commands/common.go | 2 +- glide.lock | 9 +++++---- modules/ibc/provider.go | 2 +- tests/cli/rpc.sh | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/client/commands/common.go b/client/commands/common.go index a7ea8da7d7..4bb565b6f9 100644 --- a/client/commands/common.go +++ b/client/commands/common.go @@ -79,7 +79,7 @@ func GetCertifier() (*certifiers.InquiringCertifier, error) { return nil, err } cert := certifiers.NewInquiring( - viper.GetString(ChainFlag), seed.Validators, trust, source) + viper.GetString(ChainFlag), seed, trust, source) return cert, nil } diff --git a/glide.lock b/glide.lock index f68a89d0c4..b13de02249 100644 --- a/glide.lock +++ b/glide.lock @@ -1,5 +1,5 @@ -hash: 45eed61138603d4d03518ea822068cf32b45d0a219bb7f3b836e52129f2a3a2b -updated: 2017-07-26T19:44:39.753066441-04:00 +hash: 8c438edb7d269da439141e62f3e0c931fa9efaee54b13ce1e7330dc99179fddd +updated: 2017-07-24T10:22:44.120576373-04:00 imports: - name: github.com/bgentry/speakeasy version: 4aabc24848ce5fd31929f7d1e4ea74d3709c14cd @@ -133,15 +133,16 @@ imports: - data - data/base58 - name: github.com/tendermint/light-client - version: 1c53d04dcc65c2fd15526152ed0651af10a09982 + version: fd166a86ccc2e4d2abcf2e765e70f341b7676d89 subpackages: - certifiers - certifiers/client - certifiers/files - proofs - name: github.com/tendermint/merkleeyes - version: 0310013053953eef80def3619aeb1e3a3254f452 + version: 439776e0199f1812e132aa7b97463e8550906690 subpackages: + - app - client - iavl - name: github.com/tendermint/tendermint diff --git a/modules/ibc/provider.go b/modules/ibc/provider.go index 7ff8858d8a..d5fb877da0 100644 --- a/modules/ibc/provider.go +++ b/modules/ibc/provider.go @@ -35,7 +35,7 @@ func newCertifier(store state.SimpleDB, chainID string, h int) (*certifiers.Inqu } // we have no source for untrusted keys, but use the db to load trusted history - cert := certifiers.NewInquiring(chainID, seed.Validators, p, + cert := certifiers.NewInquiring(chainID, seed, p, certifiers.MissingProvider{}) return cert, nil } diff --git a/tests/cli/rpc.sh b/tests/cli/rpc.sh index 1026ee8902..0a1575d10b 100755 --- a/tests/cli/rpc.sh +++ b/tests/cli/rpc.sh @@ -98,7 +98,7 @@ test02GetSecure() { # assertFalse "missing height" "${CLIENT_EXE} rpc headers" HEADERS=$(${CLIENT_EXE} rpc headers --min=$CHEIGHT --max=$HEIGHT) assertTrue "line=${LINENO}, get headers" "$?" - assertEquals "line=${LINENO}, proper height" "$HEIGHT" $(echo $HEADERS | jq '.last_height') + assertEquals "line=${LINENO}, proper height" "$HEIGHT" $(echo $HEADERS | jq '.block_metas[0].header.height') assertEquals "line=${LINENO}, two headers" "2" $(echo $HEADERS | jq '.block_metas | length') # should we check these headers? CHEAD=$(echo $COMMIT | jq .header)