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

Ensure transactions in past election blocks can be proven #3202

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

sisou
Copy link
Member

@sisou sisou commented Dec 17, 2024

Before this change, transactions in election blocks where tried to be proven with the block number of the following election block, because Policy::election_block_after() returns the following election block if given an election block number.

This addresses the latest finding in #3200.

Pull request checklist

  • All tests pass. The project builds and runs.
  • I have resolved any merge conflicts.
  • I have resolved all clippy and rustfmt warnings.

@sisou sisou requested a review from viquezclaudio December 17, 2024 10:57
@sisou sisou self-assigned this Dec 17, 2024
@viquezclaudio
Copy link
Member

Since election blocks do not contain regular transactions, you mean the problem was related to prove inherents/rewards in election blocks?

@sisou
Copy link
Member Author

sisou commented Dec 17, 2024

Yes, but they are handled and logged like any other transaction as far as the web-client is concerned.

Copy link
Member

@jsdanielh jsdanielh left a comment

Choose a reason for hiding this comment

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

LGTM

Before this change, transactions in election blocks where tried to be proven with the block number of the following election block, because `Policy::election_block_after()` returns the following election block if given an election block number.
@jsdanielh jsdanielh force-pushed the soeren/election-block-txs-proofs branch from f0a7c85 to e067731 Compare December 23, 2024 23:14
@jsdanielh jsdanielh merged commit e067731 into albatross Dec 24, 2024
8 checks passed
@jsdanielh jsdanielh deleted the soeren/election-block-txs-proofs branch December 24, 2024 06:21
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.

3 participants