diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-06-12 00:20:30 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-06-19 04:20:45 +0800 |
commit | 8507c867b9cca2b1d59182baea90ab2844d494a0 (patch) | |
tree | 00b4e2580b7dc012cf2e71f12fcf87d2a0d7a617 | |
parent | 6931267324a4cb00d1edf0b8e85333b744882c2d (diff) | |
download | dexon-8507c867b9cca2b1d59182baea90ab2844d494a0.tar dexon-8507c867b9cca2b1d59182baea90ab2844d494a0.tar.gz dexon-8507c867b9cca2b1d59182baea90ab2844d494a0.tar.bz2 dexon-8507c867b9cca2b1d59182baea90ab2844d494a0.tar.lz dexon-8507c867b9cca2b1d59182baea90ab2844d494a0.tar.xz dexon-8507c867b9cca2b1d59182baea90ab2844d494a0.tar.zst dexon-8507c867b9cca2b1d59182baea90ab2844d494a0.zip |
Fix geth blocktest command
-rw-r--r-- | cmd/geth/blocktestcmd.go | 1 | ||||
-rw-r--r-- | tests/block_test_util.go | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/cmd/geth/blocktestcmd.go b/cmd/geth/blocktestcmd.go index ffea4400e..116eec2b3 100644 --- a/cmd/geth/blocktestcmd.go +++ b/cmd/geth/blocktestcmd.go @@ -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 diff --git a/tests/block_test_util.go b/tests/block_test_util.go index 7db47566b..787056b89 100644 --- a/tests/block_test_util.go +++ b/tests/block_test_util.go @@ -85,7 +85,7 @@ type btTransaction struct { } func RunBlockTest(filepath string) error { - bt, err := loadBlockTests(filepath) + bt, err := LoadBlockTests(filepath) if err != nil { return err } @@ -449,7 +449,7 @@ func mustConvertUint(in string, base int) uint64 { return out } -func loadBlockTests(file string) (map[string]*BlockTest, error) { +func LoadBlockTests(file string) (map[string]*BlockTest, error) { bt := make(map[string]*btJSON) if err := readTestFile(file, &bt); err != nil { return nil, err |