aboutsummaryrefslogtreecommitdiffstats
path: root/core/block_processor_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/block_processor_test.go')
-rw-r--r--core/block_processor_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/block_processor_test.go b/core/block_processor_test.go
index b52c3d3f8..97b80038d 100644
--- a/core/block_processor_test.go
+++ b/core/block_processor_test.go
@@ -1,6 +1,7 @@
package core
import (
+ "fmt"
"math/big"
"testing"
@@ -16,7 +17,11 @@ func proc() (*BlockProcessor, *ChainManager) {
db, _ := ethdb.NewMemDatabase()
var mux event.TypeMux
- chainMan := NewChainManager(db, db, thePow(), &mux)
+ genesis := GenesisBlock(0, db)
+ chainMan, err := NewChainManager(genesis, db, db, thePow(), &mux)
+ if err != nil {
+ fmt.Println(err)
+ }
return NewBlockProcessor(db, db, ezp.New(), chainMan, &mux), chainMan
}