Skip to content

Cache recent blocks in RPC #1992

@Mirko-von-Leipzig

Description

@Mirko-von-Leipzig

Original comment: #1846 (comment)

SubmitProvenBatch enforces that a submitted batch's reference block must be present in the chain by fetching its header from the store. SubmitProvenTransaction does not check this, and the responsibility is delegated to the block-producer instead. We should align these.

No matter where we keep these, we should reduce store trips by keeping an LRU of recent block headers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    block-producerRelated to the block producer componentrpcRelated to the RPC component

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions