From 49bea520cf2f4ba24bda05cc02aa345a2c13304d Mon Sep 17 00:00:00 2001 From: Marko Baricevic Date: Sat, 6 Jul 2019 09:47:47 +0200 Subject: [PATCH] change trust to trusted --- lite/verifying/provider.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lite/verifying/provider.go b/lite/verifying/provider.go index ade266604..d84628e43 100644 --- a/lite/verifying/provider.go +++ b/lite/verifying/provider.go @@ -59,7 +59,7 @@ func NewProvider(chainID, rootDir string, client lclient.SignStatusClient, logge vp := initProvider(chainID, rootDir, client, logger, cacheSize, options) // Get the latest source commit, or the one provided in options. - trustCommit, err := getTrustCommit(client, options) + trustCommit, err := getTrustedCommit(client, options) if err != nil { return nil, err } @@ -93,7 +93,7 @@ func NewProvider(chainID, rootDir string, client lclient.SignStatusClient, logge return vp, nil } -// getTrustCommit returns a commit trusted with weak subjectivity. It either: +// getTrustedCommit returns a commit trusted with weak subjectivity. It either: // 1. Fetches a commit at height provided in options and ensures the specified commit // is within the trust period of latest block // 2. Trusts the remote node and gets the latest commit