Skip to content

Conversation

@pinebit
Copy link
Collaborator

@pinebit pinebit commented Dec 5, 2025

Fixed bug found in edit remove-operators command logic.

category: bug
ticket: none

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug in the edit remove-operators command logic within the DKG (Distributed Key Generation) reshare functionality. The fix addresses how removed operators are identified and handled during the reshare ceremony, particularly when removed nodes may still participate to transfer their key shares.

Key Changes:

  • Added nil-safety check when looking up removed operators in the peer map (preventing panics when removed nodes don't participate)
  • Refactored node classification logic to properly filter out removed nodes from the newNodes list
  • Added detailed comments explaining the semantics of oldNodes/newNodes in remove-only vs add-only scenarios

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

This comment was marked as outdated.

This comment was marked as outdated.

@codecov
Copy link

codecov bot commented Dec 5, 2025

Codecov Report

❌ Patch coverage is 43.90244% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.41%. Comparing base (fd3a0a7) to head (d59d547).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
dkg/pedersen/reshare.go 39.47% 16 Missing and 7 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4147      +/-   ##
==========================================
- Coverage   56.43%   56.41%   -0.02%     
==========================================
  Files         245      245              
  Lines       31175    31198      +23     
==========================================
+ Hits        17593    17600       +7     
- Misses      11273    11285      +12     
- Partials     2309     2313       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 5, 2025

@pinebit pinebit added the merge when ready Indicates bulldozer bot may merge when all checks pass label Dec 9, 2025
@obol-bulldozer obol-bulldozer bot merged commit 1d6adac into main Dec 9, 2025
11 of 12 checks passed
@obol-bulldozer obol-bulldozer bot deleted the pinebit/fixed-edit-remove-op branch December 9, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge when ready Indicates bulldozer bot may merge when all checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants