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 panic in async_tree.rs #1798

Merged
merged 2 commits into from
Apr 29, 2024
Merged

Fix panic in async_tree.rs #1798

merged 2 commits into from
Apr 29, 2024

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Apr 29, 2024

Fix #1712

Work time: 1h

@@ -811,7 +811,10 @@ where
assert!(match (self.input_finalized_index, new_best_block) {
(Some(f), Some(b)) => self.non_finalized_blocks.is_ancestor(f, b),
(Some(_), None) => false,
(None, Some(_)) => true,
(None, Some(b)) => {
assert!(self.non_finalized_blocks.contains(b));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This newly-added asset is not strictly related to the bug, but it might catch similar problems earlier on.

@tomaka tomaka added this pull request to the merge queue Apr 29, 2024
Merged via the queue into smol-dot:main with commit 7423ac4 Apr 29, 2024
21 checks passed
@tomaka tomaka deleted the fix-1712 branch April 29, 2024 08:24
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.

panicked at /__w/smoldot/smoldot/light-base/src/runtime_service.rs:1845:35
1 participant