Skip to content

Runtime error when doing from-consensus-buff? with an empty buffer #6683

@hstove-stacks

Description

@hstove-stacks

When calling from-consensus-buff? with an empty buffer, you get the runtime error:

Unchecked(CostComputationFailed("Error evaluating result of cost function ST000000000000000000002AMW42H.costs-3.cost_from_consensus_buff: Arithmetic(\"log2 must be passed a positive integer\")\n Stack Trace: \n"))

This is present in both epoch 3.2 and 3.3.

Example replication: (from-consensus-buff? bool 0x)

The expected behavior is that this function returns none, which is the normal return when deserialization fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnwanted or unintended property causing functional harm

    Type

    Projects

    Status

    Status: 🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions