Skip to content

Improve get_block_header's usage of errors #6506

@iovoid

Description

@iovoid

As mentioned in a review, get_block_header currently returns Ok(None) instead of Err(...) for the error conditions.

This isn't very clear and may lead to incorrectly interpreting what each return value means.

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