Fix geth blocktest command

This commit is contained in:
Taylor Gerring
2015-06-11 12:20:30 -04:00
parent 6931267324
commit 8507c867b9
2 changed files with 3 additions and 2 deletions

View File

@ -86,6 +86,7 @@ func runBlockTest(ctx *cli.Context) {
}
func runOneBlockTest(ctx *cli.Context, test *tests.BlockTest) (*eth.Ethereum, error) {
// TODO remove in favor of logic contained in tests package
cfg := utils.MakeEthConfig(ClientIdentifier, Version, ctx)
cfg.NewDB = func(path string) (common.Database, error) { return ethdb.NewMemDatabase() }
cfg.MaxPeers = 0 // disable network