Skip to content

verifyseal error vars

Source (upstream pre-purge) Current
File consensus/ethash/consensus.go verifyseal.go
Symbol errInvalidDifficulty errInvalidDifficulty
Ref dde2da0ef~1 etc/v1.17.3-full-node

errInvalidDifficulty, errInvalidMixDigest, errInvalidPoW — extracted from consensus.go to verifyseal.go

3-way merge — purge → getc ← upstream

pre-purgefork-only
// Ethash proof-of-work seal verification errors.
var (
errInvalidDifficulty = errors.New("non-positive difficulty")
errInvalidMixDigest = errors.New("invalid mix digest")
errInvalidPoW = errors.New("invalid proof-of-work")
)
core-geth validation — +1 -9 | | | |---|---| | File | [`consensus.go`](https://github.com/etclabscore/core-geth/blob/v1.12.20/consensus/ethash/consensus.go) | | Symbol | `errInvalidDifficulty` | | Ref | `v1.12.20` |
--- a/core-geth/consensus/ethash/consensus.go
+++ b/etc/consensus/ethash/verifyseal.go
@@ -1,13 +1,5 @@
-// Various error messages to mark blocks invalid. These should be private to
-// prevent engine specific errors from being referenced in the remainder of the
-// codebase, inherently breaking if the engine is swapped out. Please put common
-// error types into the consensus package.
+// Ethash proof-of-work seal verification errors.
 var (
-   errOlderBlockTime    = errors.New("timestamp older than parent")
-   errTooManyUncles     = errors.New("too many uncles")
-   errDuplicateUncle    = errors.New("duplicate uncle")
-   errUncleIsAncestor   = errors.New("uncle is ancestor")
-   errDanglingUncle     = errors.New("uncle's parent is not ancestor")
    errInvalidDifficulty = errors.New("non-positive difficulty")
    errInvalidMixDigest  = errors.New("invalid mix digest")
    errInvalidPoW        = errors.New("invalid proof-of-work")

← Consensus & Ethash