Skip to content

Use zero-sized field for message padding #467

@jkczyz

Description

@jkczyz

Could you use something like PhantomData<[u8; 12]> (or our own custom Padding type) for this? It could allow for using zero bytes yet still have a field for reading/writing the data. Then we'd make reading the padding explicit rather than doing so while reading outgoing_cltv_value.

Originally posted by @jkczyz in #434

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions