statesync: improve stateprovider handling in the syncer (backport) (#6881)

This commit is contained in:
Callum Waters
2021-09-01 16:18:07 +02:00
committed by GitHub
parent e0c6199aae
commit 73ef2675ce
5 changed files with 40 additions and 55 deletions

View File

@@ -106,10 +106,6 @@ func (s *lightClientStateProvider) AppHash(ctx context.Context, height uint64) (
if err != nil {
return nil, err
}
_, err = s.lc.VerifyLightBlockAtHeight(ctx, int64(height), time.Now())
if err != nil {
return nil, err
}
return header.AppHash, nil
}