Removed debug logging
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
package ethchain
|
||||
|
||||
import "fmt"
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// Parent error. In case a parent is unknown this error will be thrown
|
||||
// by the block manager
|
||||
@ -40,3 +42,22 @@ func IsValidationErr(err error) bool {
|
||||
|
||||
return ok
|
||||
}
|
||||
|
||||
type NonceErr struct {
|
||||
Message string
|
||||
Is, Exp uint64
|
||||
}
|
||||
|
||||
func (err *NonceErr) Error() string {
|
||||
return err.Message
|
||||
}
|
||||
|
||||
func NonceError(is, exp uint64) *NonceErr {
|
||||
return &NonceErr{Message: fmt.Sprintf("Nonce err. Is %d, expected %d", is, exp), Is: is, Exp: exp}
|
||||
}
|
||||
|
||||
func IsNonceErr(err error) bool {
|
||||
_, ok := err.(*NonceErr)
|
||||
|
||||
return ok
|
||||
}
|
||||
|
Reference in New Issue
Block a user