-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Feat/improve fee history performance #5182
Feat/improve fee history performance #5182
Conversation
…, refactor caclulations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for this draft,
I don't want to integrate the feehistory in the ethstatecache, this should be limited to state data only.
instead we want a separate type that handles this similar to the gasoracle. that only tracks Hash to Fees, this one is accessed when the endpoint is called, if entry is missing we fetch the missing block from the state cache, compute the entry, then insert it.
eventually we can preinsert on new blocks.
…che to store fees for blocks, refactor fee_history function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great progress, this is really starting to take form.
left some suggestions.
the most complex part will be the static percentiles approximation
… change upper_bound and lower_bound to function
…istory_performance
…istory_performance
…istory_performance
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
…nil/reth into feat/improve_fee_history_performance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks great, really happy with how this turned out.
only have last structural nits.
I'll merge these after today's alpha release so we have enough time to test this a bit more before shipping it in the next
Draft PR to optimize fee_history()