good morning!!!!

Skip to content
Snippets Groups Projects
Commit 43454053 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Fixed tests

parent 99907f94
Branches
Tags
No related merge requests found
...@@ -11,7 +11,7 @@ import ( ...@@ -11,7 +11,7 @@ import (
func newChain(size int) (chain []*types.Block) { func newChain(size int) (chain []*types.Block) {
var parentHash common.Hash var parentHash common.Hash
for i := 0; i < size; i++ { for i := 0; i < size; i++ {
block := types.NewBlock(parentHash, common.Address{}, common.Hash{}, new(big.Int), 0, "") block := types.NewBlock(parentHash, common.Address{}, common.Hash{}, new(big.Int), 0, nil)
block.Header().Number = big.NewInt(int64(i)) block.Header().Number = big.NewInt(int64(i))
chain = append(chain, block) chain = append(chain, block)
parentHash = block.Hash() parentHash = block.Hash()
......
...@@ -31,8 +31,7 @@ func TestNewBlockRes(t *testing.T) { ...@@ -31,8 +31,7 @@ func TestNewBlockRes(t *testing.T) {
root := common.HexToHash("0x01") root := common.HexToHash("0x01")
difficulty := common.Big1 difficulty := common.Big1
nonce := uint64(1) nonce := uint64(1)
extra := "" block := types.NewBlock(parentHash, coinbase, root, difficulty, nonce, nil)
block := types.NewBlock(parentHash, coinbase, root, difficulty, nonce, extra)
tests := map[string]string{ tests := map[string]string{
"number": reNum, "number": reNum,
"hash": reHash, "hash": reHash,
...@@ -81,8 +80,7 @@ func TestNewBlockResWithTrans(t *testing.T) { ...@@ -81,8 +80,7 @@ func TestNewBlockResWithTrans(t *testing.T) {
root := common.HexToHash("0x01") root := common.HexToHash("0x01")
difficulty := common.Big1 difficulty := common.Big1
nonce := uint64(1) nonce := uint64(1)
extra := "" block := types.NewBlock(parentHash, coinbase, root, difficulty, nonce, nil)
block := types.NewBlock(parentHash, coinbase, root, difficulty, nonce, extra)
tests := map[string]string{ tests := map[string]string{
"number": reNum, "number": reNum,
"hash": reHash, "hash": reHash,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment