diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-18 23:08:51 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-18 23:08:51 +0800 |
commit | ee9df32dba5091069cbdad8d00dc15738d676d5b (patch) | |
tree | cc4ea5f0196f1d8686e74357071b31e1379eea3f /core | |
parent | 655e94259765b02454df93205a30a271103de5a0 (diff) | |
download | go-tangerine-ee9df32dba5091069cbdad8d00dc15738d676d5b.tar.gz go-tangerine-ee9df32dba5091069cbdad8d00dc15738d676d5b.tar.zst go-tangerine-ee9df32dba5091069cbdad8d00dc15738d676d5b.zip |
Added errors
Diffstat (limited to 'core')
-rw-r--r-- | core/error.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/error.go b/core/error.go index 11d8c1653..6af48ac2d 100644 --- a/core/error.go +++ b/core/error.go @@ -1,10 +1,16 @@ package core import ( + "errors" "fmt" "math/big" ) +var ( + BlockNumberErr = errors.New("block number invalid") + BlockFutureErr = errors.New("block time is in the future") +) + // Parent error. In case a parent is unknown this error will be thrown // by the block manager type ParentErr struct { |