diff options
author | zelig <viktor.tron@gmail.com> | 2014-12-15 02:07:05 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2014-12-15 04:27:06 +0800 |
commit | 3308d82b234f93dbba80d332e495dcf157aacbe8 (patch) | |
tree | 0324a3c417b50c161c55879fb3b918fe16874c77 /eth | |
parent | c44e02589877722af7ef61738ff7ec05a7a14279 (diff) | |
download | dexon-3308d82b234f93dbba80d332e495dcf157aacbe8.tar.gz dexon-3308d82b234f93dbba80d332e495dcf157aacbe8.tar.zst dexon-3308d82b234f93dbba80d332e495dcf157aacbe8.zip |
add protocol error types specific to blockpool
Diffstat (limited to 'eth')
-rw-r--r-- | eth/error.go | 4 |
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 { |