Skip to content

Introduce helper type for two BlockHashes #12493

Closed
@mattsse

Description

@mattsse

Describe the feature

currently we use an header when we actually only need the number+hash+parenthash

for example:

with upcoming generics, this would be harder to manage and we can use a new type, like

pub struct BlockAndParent {
  parent: Hash,
  block: BlockNumHash,
}

name tbd

TODO

  • introduce the type (can be in reth-primitives-traits first, but we want to move this to alloy later)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementNew feature or requestD-good-first-issueNice and easy! A great choice to get started

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions