Skip to content

Add config setting for pending block behaviour #17535

@mattsse

Description

@mattsse

Describe the feature

currently we're building an entire block in rpc, this isn't always desired:

let mut best_txs =
self.pool().best_transactions_with_attributes(BestTransactionsAttributes::new(
block_env.basefee,
block_env.blob_gasprice().map(|gasprice| gasprice as u64),
));
while let Some(pool_tx) = best_txs.next() {

ideally this behaviour is configureable via rpcargs and ethconfig

pub struct RpcServerArgs {

for this we can include a setting lik

pending_block: empty|none|full

for this we need another enum for these states, this behaviour we then need to respect when handling the block

Additional context

No response

Metadata

Metadata

Assignees

Labels

A-rpcRelated to the RPC implementationC-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