forked from cerc-io/plugeth
add protocol error types specific to blockpool
This commit is contained in:
parent
c44e025898
commit
3308d82b23
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user