diff --git a/lite/provider.go b/lite/provider.go index 8aec819da..44e013566 100644 --- a/lite/provider.go +++ b/lite/provider.go @@ -119,7 +119,7 @@ func (cp *ConcurrentProvider) joinConcurrency(chainID string, height int64) (pr // UpdateToHeight implements UpdatingProvider. func (cp *ConcurrentProvider) UpdateToHeight(chainID string, height int64) error { - // Performs synchronization for multi-threads verification at the same height. + // Performs synchronization for multi-threads verifications at the same height. pr, isFirstCall, callback := cp.joinConcurrency(chainID, height) if isFirstCall { diff --git a/lite/verifying/provider.go b/lite/verifying/provider.go index 3e421c25b..b45922ab8 100644 --- a/lite/verifying/provider.go +++ b/lite/verifying/provider.go @@ -5,6 +5,7 @@ package verifying import ( "bytes" + "errors" "fmt" "sync" "time" @@ -189,7 +190,7 @@ func getTrustedCommit(logger log.Logger, client lclient.SignStatusClient, option if latestCommit.Time.Sub(trustCommit.Time) > options.TrustPeriod { return types.SignedHeader{}, - fmt.Errorf("your trusted block height is older than the trust period from latest block") + errors.New("your trusted block height is older than the trust period from latest block") } signedHeader := trustCommit.SignedHeader