-
Notifications
You must be signed in to change notification settings - Fork 1.2k
refactor: resolve a lot of sonarlint and clang-tidy warnings in llmq code #5773
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
refactor: resolve a lot of sonarlint and clang-tidy warnings in llmq code #5773
Conversation
ad78e3e to
f6123d4
Compare
|
Guix Automation has began to build this PR tagged as v20.1.0-devpr5773.f6123d42. A new comment will be made when the image is pushed. |
|
Guix Automation has completed; a release should be present here: https://github.com/dashpay/dash-dev-branches/releases/tag/v20.1.0-devpr5773.f6123d42. The image should be on dockerhub soon. |
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.
unit tests crashed in CI
|
Guix Automation has failed due to the HEAD commit not being signed by an authorized core-team member. Please rebase and sign or push a new empty signed commit to allow Guix build to happen. |
1 similar comment
|
Guix Automation has failed due to the HEAD commit not being signed by an authorized core-team member. Please rebase and sign or push a new empty signed commit to allow Guix build to happen. |
c3072bc to
21b2f1c
Compare
| const uint256 commitmentHash = ::SerializeHash(fqc); | ||
|
|
||
| { | ||
| const bool relay = [&]() { |
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.
smart :D I am always annoyed by passing variables out of LOCK scope
|
This pull request has conflicts, please rebase. |
21b2f1c to
6d776a1
Compare
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
| for (auto& p : qcs) { | ||
| auto& qc = p.second; | ||
| for (auto& [_, qc2] : qcs) { | ||
| auto& qc = qc2; // cannot capture structured binding into lambda |
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.
nit: could do 22e9655 instead
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.
Huh; interesting, but I think it's fine as is
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.
LGTM 6d776a1
6d776a1 to
bf57b15
Compare
Issue being fixed or feature implemented
Resolve a lot of sonarlint and clang-tidy warnings. Please see individual commits
What was done?
How Has This Been Tested?
make checkBreaking Changes
Should be none
Checklist:
Go over all the following points, and put an
xin all the boxes that apply.