Skip to content

Add transaction_count to ExecutionPayload #20532

@mattsse

Description

@mattsse

Describe the feature

we expect that the ExecutionPayload holds the transactions

pub trait ExecutionPayload:

we can make use of the number of transactions for vec pre-allocs, so we should add this as function the trait

similar to

/// Returns the number of the transactions in the block.
fn transaction_count(&self) -> usize {

TODO

  • add trait fn and update impls

Additional context

No response

Metadata

Metadata

Assignees

Labels

A-sdkRelated to reth's use as a libraryC-enhancementNew feature or requestD-good-first-issueNice and easy! A great choice to get started

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions