Skip to content

cuprated: fix switching to main chain after a reorg#438

Merged
Boog900 merged 3 commits intomainfrom
one-more-reorg-fix
Apr 10, 2025
Merged

cuprated: fix switching to main chain after a reorg#438
Boog900 merged 3 commits intomainfrom
one-more-reorg-fix

Conversation

@Boog900
Copy link
Copy Markdown
Member

@Boog900 Boog900 commented Apr 9, 2025

fixes: #435

Sad we couldn't get this before release but oh well.

@github-actions github-actions Bot added the A-binaries Area: Related to binaries. label Apr 9, 2025
/// This function will panic if any internal service returns an unexpected error that we cannot
/// recover from.
async fn handle_incoming_block_batch_alt_chain(&mut self, mut batch: BlockBatch) {
// TODO: this needs testing (this whole section does but alt-blocks specifically).
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think this is sufficiently tested now :)

@Boog900 Boog900 marked this pull request as ready for review April 9, 2025 23:30
@Boog900 Boog900 requested a review from hinto-janai April 9, 2025 23:31
@Boog900 Boog900 merged commit eceb74f into main Apr 10, 2025
11 checks passed
@Boog900 Boog900 deleted the one-more-reorg-fix branch April 11, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-binaries Area: Related to binaries.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Panic at binaries/cuprated/src/blockchain/manager/handler.rs:170:32

2 participants