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

Add BlockchainEvent::Stored(Block) for forked and inferior chain blocks #2153

Merged
merged 1 commit into from
Jan 27, 2024

Conversation

nibhar
Copy link
Member

@nibhar nibhar commented Jan 26, 2024

Also streamline the event firings in general. Any Finalized and EpochFinalized event does not supersede an Extended event. After this commit these will be emitted consistently.

Note that the validator still must on_blockchain_extended for EpochFinalized as well as Finalized as the ordering of emitted events would otherwise matter since the validator set needs adjustment before the block producer is initialized.

@nibhar nibhar added this to the Nimiq PoS Mainnet milestone Jan 26, 2024
@nibhar nibhar requested a review from sisou January 26, 2024 20:04
@nibhar nibhar self-assigned this Jan 26, 2024
Copy link
Contributor

@hrxi hrxi left a comment

Choose a reason for hiding this comment

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

Just some typos. PR itself looks good.

@nibhar nibhar force-pushed the nibhar/blockchain-event branch from 51f25ee to 059734d Compare January 26, 2024 20:21
@hrxi hrxi force-pushed the nibhar/blockchain-event branch from 059734d to e276ede Compare January 26, 2024 20:46
Also streamline the event firings in general. Any `Finalized` and `EpochFinalized` event does *not* supersede an `Extended` event. After this commit these will be emitted consistently.

Note that the validator still must `on_blockchain_extended` for `EpochFinalized` as well as `Finalized` as the ordering of emitted events would otherwise matter since the validator set needs adjustment before the block producer is initialized.
@hrxi hrxi force-pushed the nibhar/blockchain-event branch from e276ede to 6477bc0 Compare January 27, 2024 12:29
@hrxi hrxi merged commit 6477bc0 into albatross Jan 27, 2024
6 checks passed
@hrxi hrxi deleted the nibhar/blockchain-event branch January 27, 2024 13:35
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.

2 participants