Skip to content

Commit ee9df32

Browse files
committed
Added errors
1 parent 655e942 commit ee9df32

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/error.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
package core
22

33
import (
4+
"errors"
45
"fmt"
56
"math/big"
67
)
78

9+
var (
10+
BlockNumberErr = errors.New("block number invalid")
11+
BlockFutureErr = errors.New("block time is in the future")
12+
)
13+
814
// Parent error. In case a parent is unknown this error will be thrown
915
// by the block manager
1016
type ParentErr struct {

0 commit comments

Comments
 (0)