Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Support pending block in feeHistory endpoint #11800

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

malik672
Copy link
Contributor

should close #11795

@malik672 malik672 marked this pull request as draft October 16, 2024 15:35
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool, overall this looks right, some suggestions, though not 100% sure all are feasible

crates/rpc/rpc-eth-api/src/helpers/fee.rs Show resolved Hide resolved
crates/rpc/rpc-eth-api/src/helpers/fee.rs Outdated Show resolved Hide resolved
@@ -190,6 +255,34 @@ pub trait EthFees: LoadFee {
}
}

if let Some((pending_block, pending_receipts)) = pending_block {

if headers.len() < block_count as usize {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, do we need this check here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes i think, it's to prevent execeeding the user request

@malik672 malik672 requested a review from mattsse October 18, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support pending block in feeHistory endpoint
2 participants