Skip to content

Wrong encoded or inconsistent data structure #52

@xDimon

Description

@xDimon

Some dispute-tests have fail at decode bin-file:

Field core-index of WorkReport has type CoreIndex aka U16 (fixed-length integer), but encoded as JAM-Compact-Integer (variable-length integer) in .bin files (1-2 bytes).

Field auth-gas-used of WorkReport has type Gas aka U64 (fixed-length integer), but encoded as zero-byte (I guess all of its fields have encoded as JAM-Compact-Integer) in .bin files.

Field refine-load of WorkResult has type RefineLoad aka (Gas,U16,U16,U32,U16), but encoded as five zero-bytes (I guess all of its fields have encoded as JAM-Compact-Integer).

Please, check encoding of that structure if it mistaken, or describe this types decodings as JAM-Compact-Integer.

Metadata

Metadata

Assignees

No one assigned

    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