Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rlp: handle case of normal EOF in Stream.readFull (ethereum#22336)
io.Reader may return n > 0 and io.EOF at the end of the input stream. readFull did not handle this correctly, looking only at the error. This fixes it to check for n == len(buf) as well.
- Loading branch information