aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/blockchain.go4
-rw-r--r--core/error.go3
2 files changed, 4 insertions, 3 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index 52d1a7c29..c93c71403 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -62,9 +62,7 @@ var (
blockWriteTimer = metrics.NewRegisteredTimer("chain/write", nil)
blockPrefetchExecuteTimer = metrics.NewRegisteredTimer("chain/prefetch/executes", nil)
- blockPrefetchInterruptMeter = metrics.NewRegisteredMeter("chain/prefetch/interrupts", nil)
-
- ErrNoGenesis = errors.New("Genesis not found in chain")
+ blockPrefetchInterruptMeter = metrics.NewRegisteredMeter("chain/prefetch/interrupts", nil)
)
const (
diff --git a/core/error.go b/core/error.go
index 410eca1e1..cd4be3d70 100644
--- a/core/error.go
+++ b/core/error.go
@@ -32,4 +32,7 @@ var (
// ErrNonceTooHigh is returned if the nonce of a transaction is higher than the
// next one expected based on the local chain.
ErrNonceTooHigh = errors.New("nonce too high")
+
+ // ErrNoGenesis is returned when there is no Genesis Block.
+ ErrNoGenesis = errors.New("genesis not found in chain")
)