aboutsummaryrefslogtreecommitdiffstats
path: root/core/block_processor_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-03-18 20:38:47 +0800
committerFelix Lange <fjl@twurst.com>2015-03-18 20:38:47 +0800
commita59dd393e71cc52b1f96973aef884af619166f38 (patch)
treeb52cfbbb41a9fffaaefa2bc8913f578480cff160 /core/block_processor_test.go
parentb5b83db450974f70f4bc25f280cc6ec9193f8e19 (diff)
downloaddexon-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.go5
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")