p2p: use package rlp

This commit is contained in:
Felix Lange
2014-11-24 19:02:48 +01:00
parent 205af02a1f
commit c1fca72552
3 changed files with 35 additions and 71 deletions

View File

@ -57,7 +57,7 @@ func TestPeerProtoReadMsg(t *testing.T) {
if err != nil {
t.Errorf("data decoding error: %v", err)
}
expdata := []interface{}{1, []byte{0x30, 0x30, 0x30}}
expdata := []interface{}{[]byte{0x01}, []byte{0x30, 0x30, 0x30}}
if !reflect.DeepEqual(data.Slice(), expdata) {
t.Errorf("incorrect msg data %#v", data.Slice())
}