From 1ce5a475458ae12eda6efc3d0670b47880ecc3bc Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Wed, 18 Sep 2024 14:15:54 +0200 Subject: [PATCH] remove obsolate error --- verify.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/verify.go b/verify.go index 315b954b..5ec19538 100644 --- a/verify.go +++ b/verify.go @@ -75,12 +75,11 @@ func verify[H Header[H]](trstd, untrstd H) error { } var ( - ErrZeroHeader = errors.New("zero header") - ErrWrongChainID = errors.New("wrong chain id") - ErrUnorderedTime = errors.New("unordered headers") - ErrFromFuture = errors.New("header is from the future") - ErrKnownHeader = errors.New("known header") - ErrHeightFromFuture = errors.New("header height is far from future") + ErrZeroHeader = errors.New("zero header") + ErrWrongChainID = errors.New("wrong chain id") + ErrUnorderedTime = errors.New("unordered headers") + ErrFromFuture = errors.New("header is from the future") + ErrKnownHeader = errors.New("known header") ) // VerifyError is thrown if a Header failed verification.