From 77207a19db9c0d30de5baec256d0685f789f637a Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Thu, 10 Aug 2017 15:05:01 +0200 Subject: [PATCH] Fix some comments --- client/commands/query/get.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/commands/query/get.go b/client/commands/query/get.go index 302267a1ff..8a2ff820a8 100644 --- a/client/commands/query/get.go +++ b/client/commands/query/get.go @@ -102,7 +102,7 @@ func getWithProof(key []byte, node client.Client, cert certifiers.Certifier) (da return nil, 0, nil, nil, err } - // validate the proof against the certified header to ensure data integrity + // Validate the proof against the certified header to ensure data integrity. err = proof.Verify(resp.Key, resp.Value, check.Header.AppHash) if err != nil { return nil, 0, nil, nil, err @@ -118,7 +118,7 @@ func getWithProof(key []byte, node client.Client, cert certifiers.Certifier) (da return nil, 0, nil, nil, err } - // validate the proof against the certified header to ensure data integrity + // Validate the proof against the certified header to ensure data integrity. err = proof.Verify(resp.Key, check.Header.AppHash) if err != nil { return nil, 0, nil, proof, errors.Wrap(err, "Couldn't verify proof") @@ -131,7 +131,6 @@ func getWithProof(key []byte, node client.Client, cert certifiers.Certifier) (da // and certifies it. Returns error if unable to get a proven header. func GetCertifiedCheckpoint(h int, node client.Client, cert certifiers.Certifier) (empty lc.Checkpoint, err error) { - // get the checkpoint for this height // FIXME: cannot use cert.GetByHeight for now, as it also requires // Validators and will fail on querying tendermint for non-current height.