add protocol error types specific to blockpool

This commit is contained in:
zelig 2014-12-14 18:07:05 +00:00
parent c44e025898
commit 3308d82b23

View File

@ -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 {