Rename function
This commit is contained in:
parent
2b735d8968
commit
225f0e7dbe
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue