-
-
Notifications
You must be signed in to change notification settings - Fork 369
Refactor getusedcoinstagstxhashes to use GetSpendsMobile #1773
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
…ieval Updated the getusedcoinstagstxhashes function to replace the use of GetSpends with GetSpendsMobile, changing the data structure from an unordered_map to a vector of pairs for improved performance and compatibility.
WalkthroughReworked the Changes
Sequence Diagram(s)(omitted — change is localized and does not introduce a multi-component sequential flow requiring visualization) Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
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.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@src/rpc/misc.cpp`:
- Around line 1589-1596: Add the same -mobile flag guard used by other mobile
RPCs to the getusedcoinstagstxhashes RPC: at the start of the
getusedcoinstagstxhashes function check GetBoolArg("-mobile", false) and if
false throw std::runtime_error("Please rerun Firo with -mobile "); do this
before accessing spark::CSparkState::GetState() and calling
GetSpendsMobile()/GetSpendTxIds() to match the behavior in zagot functions like
getanonymityset/getsparkanonymityset and the RPC help text.
|
bugbot run |
Added a check in the getusedcoinstagstxhashes function to ensure that the application is run with the -mobile flag. If the flag is not set, an error is thrown prompting the user to rerun with the appropriate argument.
a478906
No description provided.