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

Fix collators rotating 1 block too early #275

Merged
merged 2 commits into from
Sep 28, 2023
Merged

Conversation

tmpolaczyk
Copy link
Contributor

I found a bug while testing #267, if all the tanssi collators rotate at the same time, tanssi chain is stalled because no one produces blocks. This fixes it, by delaying the rotation until the tanssi block is finalized. The old behavior triggered the rotation before sending the block to the relay, so if the session change was in block 25, the chain got stuck at block 23.

Will add tests for this case in #267

@github-actions
Copy link
Contributor

github-actions bot commented Sep 27, 2023

Master coverage: 71.90%
Coverage generated "Wed Sep 27 11:26:34 UTC 2023":
https://d3gkbsry1ehhqi.cloudfront.net/tanssi-coverage/pulls/275/index.html
Pull coverage: 71.89%

@tmpolaczyk tmpolaczyk merged commit 69e65f4 into master Sep 28, 2023
22 checks passed
@tmpolaczyk tmpolaczyk deleted the tomasz-finality-stream branch September 28, 2023 07:59
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