diff options
author | Felix Lange <fjl@users.noreply.github.com> | 2019-05-14 21:09:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-14 21:09:56 +0800 |
commit | 8deec2e45a315393025145ace43782b6294541d5 (patch) | |
tree | 1c0f2e492b2029171e83d57bdaadaabe593795cc /p2p/rlpx_test.go | |
parent | 184af72e4e30266b1f25b7602cc1ffdc60a130f6 (diff) | |
download | go-tangerine-8deec2e45a315393025145ace43782b6294541d5.tar go-tangerine-8deec2e45a315393025145ace43782b6294541d5.tar.gz go-tangerine-8deec2e45a315393025145ace43782b6294541d5.tar.bz2 go-tangerine-8deec2e45a315393025145ace43782b6294541d5.tar.lz go-tangerine-8deec2e45a315393025145ace43782b6294541d5.tar.xz go-tangerine-8deec2e45a315393025145ace43782b6294541d5.tar.zst go-tangerine-8deec2e45a315393025145ace43782b6294541d5.zip |
rlp: fixes for two corner cases and documentation (#19527)
These changes fix two corner cases related to internal handling of types
in package rlp: The "tail" struct tag can only be applied to the last field.
The check for this was wrong and didn't allow for private fields after the
field with the tag. Unsupported types (e.g. structs containing int) which
implement either the Encoder or Decoder interface but not both
couldn't be encoded/decoded.
Also fixes #19367
Diffstat (limited to 'p2p/rlpx_test.go')
0 files changed, 0 insertions, 0 deletions