Skip to content

Properly handle future blocks in PoA service #2146

@netrome

Description

@netrome

Follow-up from #2145 (comment)

Description

Currently, the extract_block_info function in the PoA service will return the current instant for last_block_created when the last block is in the future. We should either error on this case or find a good representation for this future instant, and properly handle this case in the rest of the PoA service.

Definition of done

The handling of last blocks with timestamps higher than the current system time is clear, correct and well-tested.

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