diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-02-29 22:05:37 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-02-29 22:05:37 +0800 |
commit | 4044a8cea44cd4cee3a8ddaf51a76b71c9d22042 (patch) | |
tree | 1aa3776381e8e117b66e4a8ed1bf83e29d966ff1 /tests/block_test_util.go | |
parent | c541b38fb36587d23c60f5e2f2b9b3c8700ec489 (diff) | |
parent | 61be63bb9b8527bb3e2357ad35a0f4ef29304da1 (diff) | |
download | go-tangerine-1.3.4.tar go-tangerine-1.3.4.tar.gz go-tangerine-1.3.4.tar.bz2 go-tangerine-1.3.4.tar.lz go-tangerine-1.3.4.tar.xz go-tangerine-1.3.4.tar.zst go-tangerine-1.3.4.zip |
Merge pull request #2258 from obscuren/release/1.3.4v1.3.4
Homestead Release Candidate
Diffstat (limited to 'tests/block_test_util.go')
-rw-r--r-- | tests/block_test_util.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/block_test_util.go b/tests/block_test_util.go index 6a2eb96a4..3ee178e5f 100644 --- a/tests/block_test_util.go +++ b/tests/block_test_util.go @@ -146,7 +146,6 @@ func runBlockTests(bt map[string]*BlockTest, skipTests []string) error { } for name, test := range bt { - // if the test should be skipped, return if skipTest[name] { glog.Infoln("Skipping block test", name) continue @@ -192,6 +191,7 @@ func runBlockTest(test *BlockTest) error { } cm := ethereum.BlockChain() + //vm.Debug = true validBlocks, err := test.TryBlocksInsert(cm) if err != nil { return err @@ -292,12 +292,13 @@ func (t *BlockTest) TryBlocksInsert(blockchain *core.BlockChain) ([]btBlock, err } } // RLP decoding worked, try to insert into chain: - _, err = blockchain.InsertChain(types.Blocks{cb}) + blocks := types.Blocks{cb} + i, err := blockchain.InsertChain(blocks) if err != nil { if b.BlockHeader == nil { continue // OK - block is supposed to be invalid, continue with next block } else { - return nil, fmt.Errorf("Block insertion into chain failed: %v", err) + return nil, fmt.Errorf("Block #%v insertion into chain failed: %v", blocks[i].Number(), err) } } if b.BlockHeader == nil { |