Skip to content

fix(consensus): split process fn and replace panics with error handling#4963

Open
raushan728 wants to merge 1 commit intomassalabs:mainfrom
raushan728:refactor/consensus-cleanup-and-stability
Open

fix(consensus): split process fn and replace panics with error handling#4963
raushan728 wants to merge 1 commit intomassalabs:mainfrom
raushan728:refactor/consensus-cleanup-and-stability

Conversation

@raushan728
Copy link
Copy Markdown

@raushan728 raushan728 commented Feb 8, 2026

Split the oversized ConsensusState::process into focused helper methods
and replaced panic!/.expect() calls with Result propagation and
error logging to prevent worker crashes.

@raushan728 raushan728 marked this pull request as draft April 16, 2026 12:11
@raushan728 raushan728 force-pushed the refactor/consensus-cleanup-and-stability branch from f4f9d06 to 47c3df9 Compare April 18, 2026 11:34
@raushan728 raushan728 changed the title Refactor(consensus): split oversized process function and eliminate panic risks in main loop fix(consensus): split process fn and replace panics with error handling Apr 18, 2026
@raushan728 raushan728 marked this pull request as ready for review April 18, 2026 11:38
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.

1 participant