diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-18 20:38:47 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-03-18 20:38:47 +0800 |
commit | a59dd393e71cc52b1f96973aef884af619166f38 (patch) | |
tree | b52cfbbb41a9fffaaefa2bc8913f578480cff160 /core/block_processor_test.go | |
parent | b5b83db450974f70f4bc25f280cc6ec9193f8e19 (diff) | |
download | dexon-a59dd393e71cc52b1f96973aef884af619166f38.tar.gz dexon-a59dd393e71cc52b1f96973aef884af619166f38.tar.zst dexon-a59dd393e71cc52b1f96973aef884af619166f38.zip |
core: fix tests
Diffstat (limited to 'core/block_processor_test.go')
-rw-r--r-- | core/block_processor_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/block_processor_test.go b/core/block_processor_test.go index ad29404e1..64add7e8b 100644 --- a/core/block_processor_test.go +++ b/core/block_processor_test.go @@ -4,6 +4,7 @@ import ( "math/big" "testing" + "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/pow/ezp" @@ -19,7 +20,7 @@ func proc() (*BlockProcessor, *ChainManager) { func TestNumber(t *testing.T) { bp, chain := proc() - block1 := chain.NewBlock(nil) + block1 := chain.NewBlock(common.Address{}) block1.Header().Number = big.NewInt(3) err := bp.ValidateHeader(block1.Header(), chain.Genesis().Header()) @@ -27,7 +28,7 @@ func TestNumber(t *testing.T) { t.Errorf("expected block number error") } - block1 = chain.NewBlock(nil) + block1 = chain.NewBlock(common.Address{}) err = bp.ValidateHeader(block1.Header(), chain.Genesis().Header()) if err == BlockNumberErr { t.Errorf("didn't expect block number error") |