Parity uses a custom BlockDetails object with a very weird last field.
is_finalized is a boolean field with the following representation:
- A value of
True is represented as a True boolean field: len(BlockDetails) == 5
- A value of
False is represented as nothing: len(BlockDetails) == 4
Presumably they wanted to save a little space in the database by simply not saving this field.
I don't think it's possible to create a subclass of rlp.Serializable which handles this use-case.
Parity uses a custom
BlockDetailsobject with a very weird last field.is_finalizedis a boolean field with the following representation:Trueis represented as a True boolean field:len(BlockDetails) == 5Falseis represented as nothing:len(BlockDetails) == 4Presumably they wanted to save a little space in the database by simply not saving this field.
I don't think it's possible to create a subclass of
rlp.Serializablewhich handles this use-case.