Kaynağa Gözat

Added errors

obscuren 10 yıl önce
ebeveyn
işleme
ee9df32dba
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  1. 6 0
      core/error.go

+ 6 - 0
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 {