From 3308d82b234f93dbba80d332e495dcf157aacbe8 Mon Sep 17 00:00:00 2001 From: zelig Date: Sun, 14 Dec 2014 18:07:05 +0000 Subject: [PATCH] add protocol error types specific to blockpool --- eth/error.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eth/error.go b/eth/error.go index 9355d64572..d1daad5750 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 {