diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-07 19:10:12 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-07 19:10:12 +0800 |
commit | 43454053b0d72a0747f4a86ceabf9d5895d3032b (patch) | |
tree | 6ebe4bbbb4fd404a31f21be379893e3421866818 | |
parent | 99907f94dc966241fcf73551365593523e2c1444 (diff) | |
download | dexon-43454053b0d72a0747f4a86ceabf9d5895d3032b.tar dexon-43454053b0d72a0747f4a86ceabf9d5895d3032b.tar.gz dexon-43454053b0d72a0747f4a86ceabf9d5895d3032b.tar.bz2 dexon-43454053b0d72a0747f4a86ceabf9d5895d3032b.tar.lz dexon-43454053b0d72a0747f4a86ceabf9d5895d3032b.tar.xz dexon-43454053b0d72a0747f4a86ceabf9d5895d3032b.tar.zst dexon-43454053b0d72a0747f4a86ceabf9d5895d3032b.zip |
Fixed tests
-rw-r--r-- | core/block_cache_test.go | 2 | ||||
-rw-r--r-- | rpc/responses_test.go | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/core/block_cache_test.go b/core/block_cache_test.go index 434b97792..43ab847f9 100644 --- a/core/block_cache_test.go +++ b/core/block_cache_test.go @@ -11,7 +11,7 @@ import ( func newChain(size int) (chain []*types.Block) { var parentHash common.Hash 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)) chain = append(chain, block) parentHash = block.Hash() diff --git a/rpc/responses_test.go b/rpc/responses_test.go index 2ec6d9d15..72d4a91ee 100644 --- a/rpc/responses_test.go +++ b/rpc/responses_test.go @@ -31,8 +31,7 @@ func TestNewBlockRes(t *testing.T) { root := common.HexToHash("0x01") difficulty := common.Big1 nonce := uint64(1) - extra := "" - block := types.NewBlock(parentHash, coinbase, root, difficulty, nonce, extra) + block := types.NewBlock(parentHash, coinbase, root, difficulty, nonce, nil) tests := map[string]string{ "number": reNum, "hash": reHash, @@ -81,8 +80,7 @@ func TestNewBlockResWithTrans(t *testing.T) { root := common.HexToHash("0x01") difficulty := common.Big1 nonce := uint64(1) - extra := "" - block := types.NewBlock(parentHash, coinbase, root, difficulty, nonce, extra) + block := types.NewBlock(parentHash, coinbase, root, difficulty, nonce, nil) tests := map[string]string{ "number": reNum, "hash": reHash, |