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

Ethstats fix for gnosis devnet #4249

Merged
merged 3 commits into from
Jul 7, 2022
Merged

Ethstats fix for gnosis devnet #4249

merged 3 commits into from
Jul 7, 2022

Conversation

MarekM25
Copy link
Contributor

@MarekM25 MarekM25 commented Jul 7, 2022

No description provided.

@@ -148,6 +153,7 @@ private IEnumerable<UInt256> GetGasPricesFromRecentBlocks(IEnumerable<Block> blo

if (txFromCurrentBlock == 0)
{
blocksToGoBack--;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Did we have any reason for not decreasing it for empty blocks? In gnosis devnet when we have 100% of blocks empty we're iterating through entire BlockTree over and over https://github.com/NethermindEth/nethermind/blob/master/src/Nethermind/Nethermind.JsonRpc/Modules/Eth/GasPrice/GasPriceOracle.cs#L111

Copy link
Member

Choose a reason for hiding this comment

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

The idea was to try calculate gas price from real transactions instead of empty blocks, but yeah if most are empty then its a problem

@MarekM25 MarekM25 marked this pull request as ready for review July 7, 2022 12:10
@MarekM25 MarekM25 merged commit d934fc6 into master Jul 7, 2022
@MarekM25 MarekM25 deleted the ethstats_fix branch July 7, 2022 12:10
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.

None yet

3 participants