Update lite/verifying/provider.go

Co-Authored-By: Ismail Khoffi <Ismail.Khoffi@gmail.com>
This commit is contained in:
Zaki Manian 2019-07-05 20:52:21 -07:00 committed by GitHub
parent d15f0f8df0
commit 0a145b83be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,7 @@ func NewProvider(chainID, rootDir string, client lclient.SignStatusClient, logge
// is within the trust period of latest block
// 2. Trusts the remote node and gets the latest commit
// 3. Returns an error if the height provided in trust option is too old to sync to latest.
func getTrustCommit(client lclient.SignStatusClient, options TrustOptions) (types.SignedHeader, error) {
func getTrustedCommit(client lclient.SignStatusClient, options TrustOptions) (types.SignedHeader, error) {
// Get the lastest commit always
latestBlock, err := client.Commit(nil)