diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-07-04 01:54:14 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-07-04 15:27:42 +0800 |
commit | 0f04af5916cba5234118a442b6100c8122389abf (patch) | |
tree | 5941123c1c1ad743d2e4e231481fdb93d005224c /core/error.go | |
parent | 9c3db1be1dd24c366a58a7ced22adfa0b0839efe (diff) | |
download | go-tangerine-0f04af5916cba5234118a442b6100c8122389abf.tar.gz go-tangerine-0f04af5916cba5234118a442b6100c8122389abf.tar.zst go-tangerine-0f04af5916cba5234118a442b6100c8122389abf.zip |
Fix core error forwarding, unify OOG VM err
Diffstat (limited to 'core/error.go')
-rw-r--r-- | core/error.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/core/error.go b/core/error.go index 3f3c350df..fb64d09b2 100644 --- a/core/error.go +++ b/core/error.go @@ -30,7 +30,6 @@ func ParentError(hash common.Hash) error { func IsParentErr(err error) bool { _, ok := err.(*ParentErr) - return ok } @@ -48,7 +47,6 @@ func UncleError(format string, v ...interface{}) error { func IsUncleErr(err error) bool { _, ok := err.(*UncleErr) - return ok } @@ -67,7 +65,6 @@ func ValidationError(format string, v ...interface{}) *ValidationErr { func IsValidationErr(err error) bool { _, ok := err.(*ValidationErr) - return ok } @@ -86,7 +83,6 @@ func NonceError(is, exp uint64) *NonceErr { func IsNonceErr(err error) bool { _, ok := err.(*NonceErr) - return ok } @@ -121,24 +117,6 @@ func InvalidTxError(err error) *InvalidTxErr { func IsInvalidTxErr(err error) bool { _, ok := err.(*InvalidTxErr) - - return ok -} - -type OutOfGasErr struct { - Message string -} - -func OutOfGasError() *OutOfGasErr { - return &OutOfGasErr{Message: "Out of gas"} -} -func (self *OutOfGasErr) Error() string { - return self.Message -} - -func IsOutOfGasErr(err error) bool { - _, ok := err.(*OutOfGasErr) - return ok } |