rlp: fix decoding long strings into RawValue types

This commit is contained in:
Péter Szilágyi
2017-08-24 13:10:50 +03:00
parent 3c48a25762
commit 63246e2542
2 changed files with 25 additions and 10 deletions

View File

@ -693,7 +693,7 @@ func (s *Stream) Raw() ([]byte, error) {
return nil, err
}
if kind == String {
puthead(buf, 0x80, 0xB8, size)
puthead(buf, 0x80, 0xB7, size)
} else {
puthead(buf, 0xC0, 0xF7, size)
}