diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-29 20:00:24 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-29 20:00:24 +0800 |
commit | 735b029db95bf72c3105674c0f2b4f111e5ccdf5 (patch) | |
tree | d656426d54dbbdd2a187bf22e93ddc0ad9aaeece /tests/block_test_util.go | |
parent | 764e81bf12bc45b00cec7db216e72d6396cf0c13 (diff) | |
download | go-tangerine-735b029db95bf72c3105674c0f2b4f111e5ccdf5.tar.gz go-tangerine-735b029db95bf72c3105674c0f2b4f111e5ccdf5.tar.zst go-tangerine-735b029db95bf72c3105674c0f2b4f111e5ccdf5.zip |
core: return the index of the block that failed when inserting a chain
Diffstat (limited to 'tests/block_test_util.go')
-rw-r--r-- | tests/block_test_util.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/block_test_util.go b/tests/block_test_util.go index 06f082ca3..093c9be0c 100644 --- a/tests/block_test_util.go +++ b/tests/block_test_util.go @@ -162,7 +162,7 @@ func (t *BlockTest) TryBlocksInsert(chainManager *core.ChainManager) error { } } // RLP decoding worked, try to insert into chain: - err = chainManager.InsertChain(types.Blocks{cb}) + _, err = chainManager.InsertChain(types.Blocks{cb}) if err != nil { if b.BlockHeader == nil { continue // OK - block is supposed to be invalid, continue with next block |