Skip to content

refactor: Replace investor with non-cruncher #2805

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

Conversation

jamescowens
Copy link
Member

This commit eradicates all references to "investor" in file names and code (both core and GUI). Note that -investor is still allowed and is synonymous to -noncruncher for backwards compatibility purposes.

Closes #2103.

@jamescowens jamescowens added this to the Natasha milestone May 17, 2025
@jamescowens jamescowens self-assigned this May 17, 2025
@jamescowens jamescowens added the refactor This is for refactoring (if also an enhancement, use that label too). label May 17, 2025
@jamescowens jamescowens force-pushed the replace_investor_with_noncruncher branch 2 times, most recently from 8f09277 to 0307a3c Compare May 18, 2025 23:22
@jamescowens jamescowens marked this pull request as ready for review May 19, 2025 02:44
@jamescowens jamescowens requested review from div72 and Copilot May 19, 2025 02:45
Copy link

@Copilot 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 refactors the codebase to replace all references to “investor” with “non‑cruncher”, ensuring consistent naming in both core and GUI components while still supporting the legacy investor alias for backward compatibility.

  • Renames translation strings, error messages, and log outputs
  • Updates function names, enum values, and resource file aliases
  • Adjusts command-line argument definitions and settings in the UI

Reviewed Changes

Copilot reviewed 47 out of 47 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/qt/bitcoinstrings.cpp Updated UI strings to reflect non‑cruncher mode
src/qt/bitcoingui.cpp Renamed method call to use non‑cruncher mode
src/qt/bitcoin.qrc Updated file aliases for non‑cruncher SVG resources
src/qt/CMakeLists.txt Replaced investor pages with non‑cruncher pages
src/miner.cpp Adjusted comments and mining ID calls to non‑cruncher mode
src/main.h Updated CPID flag names and associated logic
src/init.cpp Added and updated arguments for non‑cruncher mode
src/gridcoin/* Updated researcher logic, voting, tally, and claims
src/Makefile.qt.include Replaced investor UI file references with non‑cruncher ones
Comments suppressed due to low confidence (1)

src/gridcoin/researcher.cpp:1169

  • Consider revisiting the conditional in ConfiguredForNoncruncherMode to determine if both legacy (-investor) and new (-noncruncher) flags should continue to be accepted. If backward compatibility is maintained only temporarily, document the plan to deprecate the legacy flag.
if (gArgs.GetBoolArg("-noncruncher", false) || Researcher::Email() == "noncruncher" || gArgs.GetBoolArg("-investor", false) || Researcher::Email() == "investor") {

@div72
Copy link
Member

div72 commented May 25, 2025

@jamescowens Any specific reason for not updating src/qt/locale?

This commit eradicates all references to "investor" in file names and
code (both core and GUI). Note that -investor is still allowed and
is synonymous to -noncruncher for backwards compatibility purposes.
@jamescowens
Copy link
Member Author

I didn't run the translatioin update as part of this PR.

@jamescowens jamescowens force-pushed the replace_investor_with_noncruncher branch from 18c3ec9 to f8b35a3 Compare May 25, 2025 14:31
@jamescowens
Copy link
Member Author

I ran the first part of the translation update and committed it. Should be good.

Copy link
Member

@div72 div72 left a comment

Choose a reason for hiding this comment

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

utACK

@jamescowens jamescowens merged commit eded299 into gridcoin-community:development May 27, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor This is for refactoring (if also an enhancement, use that label too).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Renaming Suggestions
2 participants