Skip to content

Enforce a configurable maximum transaction size #7488

@eddyashton

Description

@eddyashton

The size of a serialised transaction is stored in 6 bytes: https://microsoft.github.io/CCF/main/architecture/ledger.html#transaction-format

We have no further restriction on the size, which means corrupt ledger files can produce a fatal bad_alloc error. We should allow this to be set, and error-or-adjust that based on the allocator metadata's, and then throw clear errors on serialization or deserialisation if this is breached.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions