-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
small cleanup in a few places #2058
Conversation
* Quells warning displayed with `-Wmaybe-uninitialized` flag
This feels like an optimization, something about: ``` if map.count(key) return false else insert(pair) return true ``` ... just feels icky. Plus, `vote.GetMasternodeOutpoint()` is only called once. The previous version might be slightly more readable, however.
Looks good 👍 I'd say it's safe to merge in 12.3 if you drop d7f876e for now. |
Per our discussion on another recent PR, we'd like to off on any more non-bug-fixes going in to 12.3, but did you have any specific concerns with commit d7f876e? Or is it just the potential for a bug b/c it's a little more complex? |
It's more like no-new-features-or-potential-changes-in-behaviour mode :) d7f876e looks fine but has a potential to change the behaviour because it touches some actual code unlike others here. |
This reverts commit d7f876e.
Yep, makes sense. Might as well get the others in, will revert d7f876e. |
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.
ACK
* move nStart closer to used and initialize it * Quells warning displayed with `-Wmaybe-uninitialized` flag * remove unused mnEntries vectors * add devnet magic bytes to mininode.py * remove unused governance-misc.h file * remove old TODO comments * replace map count/insert w/emplace in instantx.cpp This feels like an optimization, something about: ``` if map.count(key) return false else insert(pair) return true ``` ... just feels icky. Plus, `vote.GetMasternodeOutpoint()` is only called once. The previous version might be slightly more readable, however. * Revert "replace map count/insert w/emplace in instantx.cpp" This reverts commit d7f876e.
Please see individual commits. Removes unused code, comments, variables, etc.
Let's wait 'til 12.3 is released before any merge, but I've been itching to get this PR created for a while, so gonna go ahead and do that now.