Skip to content

Bad enumeration of script errors #1285

@roconnor-blockstream

Description

@roconnor-blockstream

has incorrectly inserted new Elements errors into this enumeration. All the new elements errors need to go before SCRIPT_ERR_ERROR_COUNT, which isn't actually a real error. Then SCRIPT_ERR_LAST needs to be reset to SCRIPT_ERR_ERROR_COUNT, as it originally was.

AFAICT the only consequences of this error are for the fuzzer.

I'm not sure that having both SCRIPT_ERR_LAST and SCRIPT_ERR_ERROR_COUNT makes sense, but that is how it is in Bitcoin at the moment.

cc @uncomputable

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