Skip to content

Look into CompactSize MAX_SIZE #3264

Description

@tcharding

In Bitcoin Core there is a MAX_SIZE variable 0x0200_0000 that we are not using.

Look into if we should be using/enforcing this limit. The thing that has confused me is that MAX_SIZE fits in a u32 so why does CompactSize have the 0xFF initial byte and 9 byte encoding for u64s.

Discovered while hacking on #3259

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions