diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-09-16 15:44:09 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-09-16 15:46:28 +0800 |
commit | 821619e1c356df092f2d82cea0d98996765f3933 (patch) | |
tree | 6b7b637c41f6f20c2c78ab484cf37ed5e2c58f97 /core/block_processor_test.go | |
parent | e9a80518c72e0d5b2da7246a865f4dc4baab2cf9 (diff) | |
download | go-tangerine-821619e1c356df092f2d82cea0d98996765f3933.tar go-tangerine-821619e1c356df092f2d82cea0d98996765f3933.tar.gz go-tangerine-821619e1c356df092f2d82cea0d98996765f3933.tar.bz2 go-tangerine-821619e1c356df092f2d82cea0d98996765f3933.tar.lz go-tangerine-821619e1c356df092f2d82cea0d98996765f3933.tar.xz go-tangerine-821619e1c356df092f2d82cea0d98996765f3933.tar.zst go-tangerine-821619e1c356df092f2d82cea0d98996765f3933.zip |
core, eth, miner: use pure header validation
Diffstat (limited to 'core/block_processor_test.go')
-rw-r--r-- | core/block_processor_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/block_processor_test.go b/core/block_processor_test.go index e0b2d3313..538cf4ee5 100644 --- a/core/block_processor_test.go +++ b/core/block_processor_test.go @@ -48,13 +48,13 @@ func TestNumber(t *testing.T) { statedb := state.New(chain.Genesis().Root(), chain.chainDb) header := makeHeader(chain.Genesis(), statedb) header.Number = big.NewInt(3) - err := ValidateHeader(pow, header, chain.Genesis(), false, false) + err := ValidateHeader(pow, header, chain.Genesis().Header(), false, false) if err != BlockNumberErr { t.Errorf("expected block number error, got %q", err) } header = makeHeader(chain.Genesis(), statedb) - err = ValidateHeader(pow, header, chain.Genesis(), false, false) + err = ValidateHeader(pow, header, chain.Genesis().Header(), false, false) if err == BlockNumberErr { t.Errorf("didn't expect block number error") } |