aboutsummaryrefslogtreecommitdiffstats
path: root/core/error.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-18 23:08:51 +0800
committerobscuren <geffobscura@gmail.com>2015-02-18 23:08:51 +0800
commitee9df32dba5091069cbdad8d00dc15738d676d5b (patch)
treecc4ea5f0196f1d8686e74357071b31e1379eea3f /core/error.go
parent655e94259765b02454df93205a30a271103de5a0 (diff)
downloadgo-tangerine-ee9df32dba5091069cbdad8d00dc15738d676d5b.tar
go-tangerine-ee9df32dba5091069cbdad8d00dc15738d676d5b.tar.gz
go-tangerine-ee9df32dba5091069cbdad8d00dc15738d676d5b.tar.bz2
go-tangerine-ee9df32dba5091069cbdad8d00dc15738d676d5b.tar.lz
go-tangerine-ee9df32dba5091069cbdad8d00dc15738d676d5b.tar.xz
go-tangerine-ee9df32dba5091069cbdad8d00dc15738d676d5b.tar.zst
go-tangerine-ee9df32dba5091069cbdad8d00dc15738d676d5b.zip
Added errors
Diffstat (limited to 'core/error.go')
-rw-r--r--core/error.go6
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 {