-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Remove TODO in DisputedTx.h about renaming constants for ConsensusParms #2614
Conversation
Based on a TODO comment in DisputedTX.h, it seems at one point the data members of ConsensusParms were macros. Now that they are not, we should spell them like other data members (without all uppercase).
Thank you for your submission. It will be reviewed soon and submitted for processing in CI. |
Jenkins Build SummaryBuilt from this commit Built at 20180706 - 01:44:51 Test Results
|
Thank you for your submission. It will be reviewed soon and submitted for processing in CI. |
I'm leaning towards removing the TODO and keeping the naming as is for the following reasons:
What do others think? |
I'm actually fine changing these to follow naming conventions in the code. I was stickier in the past during the initial refactor, but don't see as much need anymore. These are treated as constant by the generic consensus code, so changing that behavior at least requires some intent. |
Personally, I'm good with leaving the names unchanged. The names currently have a lower case preface, which is a common way to indicate non-macro-constants in this code base. So it seems that a good path forward would be to simply remove the TODO. |
Thanks for the explanations and reasoning, guys. Based on the TER codes, it seems that the current coding conventions are exacly as @scottschurr pointed out. I'm happy to simply remove the |
Thank you for your submission. It will be reviewed soon and submitted for processing in CI. |
Codecov Report
@@ Coverage Diff @@
## develop #2614 +/- ##
===========================================
- Coverage 70.83% 70.81% -0.02%
===========================================
Files 698 698
Lines 54367 54367
===========================================
- Hits 38510 38502 -8
- Misses 15857 15865 +8
Continue to review full report at Codecov.
|
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.
👍 Thanks for helping remove some noise.
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 👍
Based on a TODO comment in
DisputedTX.h
, it seems at one point thedata members of
ConsensusParms
were macros. Now that they are not,we should spell them like other data members (without all uppercase).
Reviewers:
@wilsonianb @scottschurr