diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2016-01-20 06:48:50 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2016-02-18 17:08:18 +0800 |
commit | 4f4d2b647488eaa056613fa6f026229ac91f066a (patch) | |
tree | 3c5cfa2e5bf6da15a806a575921fe04263538375 /tests/block_test_util.go | |
parent | 371871d685d54b916aef28de689d6f0af7822083 (diff) | |
download | dexon-4f4d2b647488eaa056613fa6f026229ac91f066a.tar.gz dexon-4f4d2b647488eaa056613fa6f026229ac91f066a.tar.zst dexon-4f4d2b647488eaa056613fa6f026229ac91f066a.zip |
tests: updated homestead tests
Diffstat (limited to 'tests/block_test_util.go')
-rw-r--r-- | tests/block_test_util.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/block_test_util.go b/tests/block_test_util.go index 144c6c15f..6ba8f3d18 100644 --- a/tests/block_test_util.go +++ b/tests/block_test_util.go @@ -148,12 +148,11 @@ func runBlockTests(bt map[string]*BlockTest, skipTests []string) error { } for name, test := range bt { - if skipTest[name] || name != "wallet2outOf3txsRevoke" { + if skipTest[name] { glog.Infoln("Skipping block test", name) continue } // test the block - //fmt.Println("BlockTest name:", name) if err := runBlockTest(test); err != nil { return fmt.Errorf("%s: %v", name, err) } @@ -286,12 +285,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 { |