diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-07 20:57:04 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-07 20:57:04 +0800 |
commit | 688d118c7e0d439691e84fc6e068ab3e19da5185 (patch) | |
tree | 6891a60950e0c2956c9f2d4fed6fceb67430775c /eth/protocol_test.go | |
parent | 01b2c90179ff82e4610745aea0e3e3ca53756305 (diff) | |
download | go-tangerine-688d118c7e0d439691e84fc6e068ab3e19da5185.tar.gz go-tangerine-688d118c7e0d439691e84fc6e068ab3e19da5185.tar.zst go-tangerine-688d118c7e0d439691e84fc6e068ab3e19da5185.zip |
Updated logging
Diffstat (limited to 'eth/protocol_test.go')
-rw-r--r-- | eth/protocol_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/protocol_test.go b/eth/protocol_test.go index d3466326a..7c724f7a7 100644 --- a/eth/protocol_test.go +++ b/eth/protocol_test.go @@ -250,7 +250,7 @@ func TestNewBlockMsg(t *testing.T) { var delay = 1 * time.Second // eth.reset() - block := types.NewBlock(common.Hash{1}, common.Address{1}, common.Hash{1}, common.Big1, 1, "extra") + block := types.NewBlock(common.Hash{1}, common.Address{1}, common.Hash{1}, common.Big1, 1, []byte("extra")) go p2p.Send(eth, NewBlockMsg, &newBlockMsgData{Block: block}) timer := time.After(delay) @@ -315,7 +315,7 @@ func TestBlockMsg(t *testing.T) { var delay = 3 * time.Second // eth.reset() newblock := func(i int64) *types.Block { - return types.NewBlock(common.Hash{byte(i)}, common.Address{byte(i)}, common.Hash{byte(i)}, big.NewInt(i), uint64(i), string(i)) + return types.NewBlock(common.Hash{byte(i)}, common.Address{byte(i)}, common.Hash{byte(i)}, big.NewInt(i), uint64(i), []byte{byte(i)}) } b := newblock(0) b.Header().Difficulty = nil // check if nil as *big.Int decodes as 0 |