forked from bnb-chain/bsc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ignore errors that caused by gap to keep peer connection (bnb-ch…
- Loading branch information
Showing
3 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package etherror | ||
|
||
import "errors" | ||
|
||
var ( | ||
ErrNoHeadersDelivered = errors.New("no headers delivered") | ||
ErrInvalidHeaderBatchAnchor = errors.New("invalid header batch anchor") | ||
ErrNotEnoughNonGenesisHeaders = errors.New("not enough non-genesis headers delivered") | ||
ErrNotEnoughGenesisHeaders = errors.New("not enough genesis headers delivered") | ||
ErrInvalidHashProgression = errors.New("invalid hash progression") | ||
ErrHeaderBatchAnchorLow = errors.New("header batch anchor is lower than requested") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters