aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--eth/error.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/eth/error.go b/eth/error.go
index 9355d6457..d1daad575 100644
--- a/eth/error.go
+++ b/eth/error.go
@@ -14,6 +14,8 @@ const (
ErrNoStatusMsg
ErrExtraStatusMsg
ErrInvalidBlock
+ ErrInvalidPoW
+ ErrUnrequestedBlock
)
var errorToString = map[int]string{
@@ -26,6 +28,8 @@ var errorToString = map[int]string{
ErrNoStatusMsg: "No status message",
ErrExtraStatusMsg: "Extra status message",
ErrInvalidBlock: "Invalid block",
+ ErrInvalidPoW: "Invalid PoW",
+ ErrUnrequestedBlock: "Unrequested block",
}
type protocolError struct {