go-ethereum/rlp
Felix Lange 8deec2e45a
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
2019-05-14 15:09:56 +02:00
..
decode_tail_test.go all: update license information 2016-04-15 09:48:05 +02:00
decode_test.go rlp: fixes for two corner cases and documentation (#19527) 2019-05-14 15:09:56 +02:00
decode.go rlp: fixes for two corner cases and documentation (#19527) 2019-05-14 15:09:56 +02:00
doc.go rlp, trie, contracts, compression, consensus: improve comments (#14580) 2017-06-12 14:45:17 +02:00
encode_test.go rlp: fixes for two corner cases and documentation (#19527) 2019-05-14 15:09:56 +02:00
encode.go rlp: fixes for two corner cases and documentation (#19527) 2019-05-14 15:09:56 +02:00
encoder_example_test.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
raw_test.go rlp: fix string size check in readKind (#15625) 2017-12-11 22:47:10 +01:00
raw.go rlp: fix string size check in readKind (#15625) 2017-12-11 22:47:10 +01:00
typecache.go rlp: fixes for two corner cases and documentation (#19527) 2019-05-14 15:09:56 +02:00