Added errors
This commit is contained in:
parent
655e942597
commit
ee9df32dba
|
@ -1,10 +1,16 @@
|
||||||
package core
|
package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/big"
|
"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
|
// Parent error. In case a parent is unknown this error will be thrown
|
||||||
// by the block manager
|
// by the block manager
|
||||||
type ParentErr struct {
|
type ParentErr struct {
|
||||||
|
|
Loading…
Reference in New Issue