Skip to content

Conversation

@shamil-gadelshin
Copy link
Collaborator

@shamil-gadelshin shamil-gadelshin commented Jan 23, 2026

This PR fixes Frontier "pending block" feature: eth_getBalance request for pending block, estimate gas feature, etc.

After merging the "NPOS" preparation PR (#1941), we united create_inherent_data_providers and pending_create_data_providers (which produce different results - one slot difference for pending data provider), and chose pending_create_data_providers for both aura consensus and frontier EthDeps parameter. Which, in turn, advanced our chain for one block slot in the future. The future slot is not an issue when a shift occurs every block, however, when we need to create a pending block (one slot in the future), we use the same slot, and our Aura consensus breaks with "slot must increase" assertion.

This PR restores the correct inherent providers for both consensus cases (aura and frontier), it also adds providers for the future BABE consensus.

Relates to #2320

I tested it manually on local machine and a baedeker clone. This PR must be tested on the testnet before deployment because it changes the consensus logic.

@shamil-gadelshin shamil-gadelshin self-assigned this Jan 23, 2026
@shamil-gadelshin shamil-gadelshin added the skip-cargo-audit This PR fails cargo audit but needs to be merged anyway label Jan 23, 2026
@open-junius open-junius mentioned this pull request Jan 23, 2026
13 tasks
Copy link
Contributor

@open-junius open-junius left a comment

Choose a reason for hiding this comment

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

It looks good to me. I tested it in local environment, querying with "pending" parameter is OK.
I tried the Foundry tool, the contract deployment is OK now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-cargo-audit This PR fails cargo audit but needs to be merged anyway

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants