diff options
Diffstat (limited to 'cmd/blocktest')
-rw-r--r-- | cmd/blocktest/main.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/blocktest/main.go b/cmd/blocktest/main.go index b96f42710..d9d97abc9 100644 --- a/cmd/blocktest/main.go +++ b/cmd/blocktest/main.go @@ -125,11 +125,15 @@ func main() { } func memchain() *core.ChainManager { - db, err := ethdb.NewMemDatabase() + blockdb, err := ethdb.NewMemDatabase() if err != nil { utils.Fatalf("Could not create in-memory database: %v", err) } - return core.NewChainManager(db, new(event.TypeMux)) + statedb, err := ethdb.NewMemDatabase() + if err != nil { + utils.Fatalf("Could not create in-memory database: %v", err) + } + return core.NewChainManager(blockdb, statedb, new(event.TypeMux)) } func loadBlocksFromTestFile(filePath string) (blocks types.Blocks, err error) { |