diff options
author | obscuren <geffobscura@gmail.com> | 2015-05-18 23:46:47 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-05-19 00:16:53 +0800 |
commit | 40717465bc8c0e2feb0f1e48ddc721c7292ba992 (patch) | |
tree | 95a5564b8048f22cf22705acbd9a82067be4e473 /core/block_processor_test.go | |
parent | 59c0d014189db1b85f45ef17f458bcbc20c267b2 (diff) | |
download | dexon-40717465bc8c0e2feb0f1e48ddc721c7292ba992.tar.gz dexon-40717465bc8c0e2feb0f1e48ddc721c7292ba992.tar.zst dexon-40717465bc8c0e2feb0f1e48ddc721c7292ba992.zip |
core: fixed tests
Diffstat (limited to 'core/block_processor_test.go')
-rw-r--r-- | core/block_processor_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/block_processor_test.go b/core/block_processor_test.go index 02524a4c1..e0aa5fb4c 100644 --- a/core/block_processor_test.go +++ b/core/block_processor_test.go @@ -14,7 +14,7 @@ func proc() (*BlockProcessor, *ChainManager) { db, _ := ethdb.NewMemDatabase() var mux event.TypeMux - chainMan := NewChainManager(db, db, &mux) + chainMan := NewChainManager(db, db, thePow(), &mux) return NewBlockProcessor(db, db, ezp.New(), nil, chainMan, &mux), chainMan } @@ -24,13 +24,13 @@ func TestNumber(t *testing.T) { block1.Header().Number = big.NewInt(3) block1.Header().Time-- - err := bp.ValidateHeader(block1.Header(), chain.Genesis().Header()) + err := bp.ValidateHeader(block1.Header(), chain.Genesis().Header(), false) if err != BlockNumberErr { t.Errorf("expected block number error %v", err) } block1 = chain.NewBlock(common.Address{}) - err = bp.ValidateHeader(block1.Header(), chain.Genesis().Header()) + err = bp.ValidateHeader(block1.Header(), chain.Genesis().Header(), false) if err == BlockNumberErr { t.Errorf("didn't expect block number error") } |