This doesn't need to be public

This commit is contained in:
Alexis Sellier 2017-08-10 15:10:21 +02:00
parent 77207a19db
commit eec4b10067
2 changed files with 4 additions and 4 deletions

View File

@ -89,7 +89,7 @@ func getWithProof(key []byte, node client.Client, cert certifiers.Certifier) (da
return nil, 0, nil, nil, errors.New("Height returned is zero")
}
check, err := GetCertifiedCheckpoint(int(resp.Height), node, cert)
check, err := getCertifiedCheckpoint(int(resp.Height), node, cert)
if err != nil {
return nil, 0, nil, nil, err
}
@ -127,9 +127,9 @@ func getWithProof(key []byte, node client.Client, cert certifiers.Certifier) (da
return nil, resp.Height, nil, proof, lc.ErrNoData()
}
// GetCertifiedCheckpoint gets the signed header for a given height
// getCertifiedCheckpoint gets the signed header for a given height
// and certifies it. Returns error if unable to get a proven header.
func GetCertifiedCheckpoint(h int, node client.Client,
func getCertifiedCheckpoint(h int, node client.Client,
cert certifiers.Certifier) (empty lc.Checkpoint, err error) {
// FIXME: cannot use cert.GetByHeight for now, as it also requires

View File

@ -51,7 +51,7 @@ func txQueryCmd(cmd *cobra.Command, args []string) error {
return err
}
check, err := GetCertifiedCheckpoint(res.Height, node, cert)
check, err := getCertifiedCheckpoint(res.Height, node, cert)
if err != nil {
return err
}