Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Aug 8, 2017
1 parent 2b735d8 commit 225f0e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions client/commands/query/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,10 @@ func GetWithProof(key []byte) (data.Bytes, uint64,
if err != nil {
return nil, 0, nil, nil, err
}
return CustomGetWithProof(key, node, cert)
return getWithProof(key, node, cert)
}

// TODO: fix this up alexis
func CustomGetWithProof(key []byte, node client.Client, cert Certifier) (data.Bytes, uint64,
func getWithProof(key []byte, node client.Client, cert Certifier) (data.Bytes, uint64,
*iavl.KeyExistsProof, *iavl.KeyNotExistsProof, error) {

resp, err := node.ABCIQuery("/key", key, true)
Expand Down
4 changes: 2 additions & 2 deletions client/commands/query/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func TestAppProofs(t *testing.T) {

// Test existing key.

bs, _, proofExists, _, err := CustomGetWithProof(k, cl, cert)
bs, _, proofExists, _, err := getWithProof(k, cl, cert)
require.Nil(err, "%+v", err)
require.NotNil(proofExists)

Expand All @@ -77,7 +77,7 @@ func TestAppProofs(t *testing.T) {
// Test non-existing key.

missing := []byte("my-missing-key")
bs, _, proofExists, proofNotExists, err := CustomGetWithProof(missing, cl, cert)
bs, _, proofExists, proofNotExists, err := getWithProof(missing, cl, cert)
require.Nil(err, "%+v", err)
require.Nil(bs)
require.Nil(proofExists)
Expand Down

0 comments on commit 225f0e7

Please sign in to comment.