Skip to content

No tests for SSZ union type #4763

@michaelsproul

Description

@michaelsproul

Ligthouse's SSZ impl was recently found to have a bug in its decoding of invalid Union types:

TL;DR we would decode 0x00......: Union[T...] as None, ignoring any trailing bytes after the 0x00 selector.

Fortunately this does not cause a consensus failure as Union is currently unused in Ethereum consensus.

However, I still think it would be prudent for the spec to add some tests exercising the Union code paths. Writing new tests in ssz_generic might be the simplest.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions