-
Notifications
You must be signed in to change notification settings - Fork 1.2k
refactor: replace size check with is_single_member() method for clarity #6908
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
base: develop
Are you sure you want to change the base?
refactor: replace size check with is_single_member() method for clarity #6908
Conversation
|
WalkthroughThis pull request introduces a new public constexpr method Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes The changes follow a consistent, repetitive refactoring pattern applied homogeneously across multiple files. Each modification is mechanical—replacing direct Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
🧰 Additional context used📓 Path-based instructions (1)src/**/*.{cpp,h,cc,cxx,hpp}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧠 Learnings (2)📓 Common learnings📚 Learning: 2025-08-19T15:08:00.835ZApplied to files:
🔇 Additional comments (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 2f540be
| ss3.str(), quorumPublicKey.ToString(), commitmentHash.ToString()); | ||
| } | ||
| if (llmq_params.size == 1) { | ||
| if (llmq_params.is_single_member()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's change this one too
Line 141 in 2f540be
| if (llmq_params.size != 1 && quorumVvecHash.IsNull()) { |
Issue being fixed or feature implemented
Avoiding using raw size as indication for special logic; use a helper function in-case the conditions change in the future (however unlikely that may be)
What was done?
added helper for
is_single_memberHow Has This Been Tested?
builds
Breaking Changes
Checklist:
Go over all the following points, and put an
xin all the boxes that apply.