aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-12-15 02:07:05 +0800
committerzelig <viktor.tron@gmail.com>2014-12-15 04:27:06 +0800
commit3308d82b234f93dbba80d332e495dcf157aacbe8 (patch)
tree0324a3c417b50c161c55879fb3b918fe16874c77 /eth
parentc44e02589877722af7ef61738ff7ec05a7a14279 (diff)
downloadgo-tangerine-3308d82b234f93dbba80d332e495dcf157aacbe8.tar
go-tangerine-3308d82b234f93dbba80d332e495dcf157aacbe8.tar.gz
go-tangerine-3308d82b234f93dbba80d332e495dcf157aacbe8.tar.bz2
go-tangerine-3308d82b234f93dbba80d332e495dcf157aacbe8.tar.lz
go-tangerine-3308d82b234f93dbba80d332e495dcf157aacbe8.tar.xz
go-tangerine-3308d82b234f93dbba80d332e495dcf157aacbe8.tar.zst
go-tangerine-3308d82b234f93dbba80d332e495dcf157aacbe8.zip
add protocol error types specific to blockpool
Diffstat (limited to 'eth')
-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 {