diff options
Diffstat (limited to 'light/odr_util.go')
-rw-r--r-- | light/odr_util.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/light/odr_util.go b/light/odr_util.go index a0eb6303d..33a8e80ce 100644 --- a/light/odr_util.go +++ b/light/odr_util.go @@ -58,17 +58,14 @@ func GetHeaderByNumber(ctx context.Context, odr OdrBackend, number uint64) (*typ } } } - if number >= chtCount*ChtFrequency { return nil, ErrNoTrustedCht } - r := &ChtRequest{ChtRoot: GetChtRoot(db, chtCount-1, sectionHead), ChtNum: chtCount - 1, BlockNum: number} if err := odr.Retrieve(ctx, r); err != nil { return nil, err - } else { - return r.Header, nil } + return r.Header, nil } func GetCanonicalHash(ctx context.Context, odr OdrBackend, number uint64) (common.Hash, error) { |