Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
1 task done
mvadari
force-pushed
the
mvadari/rearch/accountroot-isGlobalFrozen
branch
from
September 30, 2026 17:58
ff15e03 to
caa8a76
Compare
mvadari
force-pushed
the
mvadari/rearch/accountroot-isGlobalFrozen
branch
from
October 5, 2026 13:59
caa8a76 to
ba2048b
Compare
Add the const member AccountRootEntry::isGlobalFrozen(), which reads lsfGlobalFreeze. The isGlobalFrozen(view, issuer) free function stays as the shim and keeps its XRP and missing-account handling.
mvadari
force-pushed
the
mvadari/rearch/accountroot-isGlobalFrozen
branch
from
October 5, 2026 14:53
ba2048b to
dcd32a6
Compare
Contributor
There was a problem hiding this comment.
This is a clean, mechanical refactor that moves isGlobalFrozen() onto AccountRootEntry as a member function, with the free function AccountRootHelpers::isGlobalFrozen delegating to it while retaining its XRP/missing-account handling. The logic is unchanged (same lsfGlobalFreeze flag check), the new member follows the same style as the existing isPseudoAccount() member, and the call site update is a correct direct method call (not pointer dereference), consistent with how AccountRootEntryR already exposes member functions directly. No behavior change, no new risks introduced.
… mvadari/rearch/accountroot-isGlobalFrozen
… mvadari/rearch/accountroot-isGlobalFrozen
… mvadari/rearch/accountroot-isGlobalFrozen
… mvadari/rearch/accountroot-isGlobalFrozen
… mvadari/rearch/accountroot-isGlobalFrozen
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
High Level Overview of Change
Adds the const member
AccountRootEntry::isGlobalFrozen(), which readslsfGlobalFreeze. TheisGlobalFrozen(view, issuer)free function stays as the shim and keeps its XRP and missing-account handling; it now calls the member. No caller passed an entry, so no call sites change.Context of Change
Part of the Wrapped SLEs migration (design: step 2/3 of #7886). Code that already holds an AccountRoot entry can now ask it directly, with the type checked by the compiler. Pure refactor: no amendment, no behavior change; any observable difference is a bug.
Stacked on #8437; review only the last commit.
This PR was fully written by AI (Claude Code) under human direction; the human author reviewed the diff.
API Impact
libxrplchange (any change that may affectlibxrplor dependents oflibxrpl)Test Plan
Syntax-checked (
clang++ -fsyntax-onlywith project flags) every.cppthat includesAccountRootEntry.horAccountRootHelpers.h(98/98 passed). clang-tidy clean on both changed files; pre-commit clean. No new tests. CI runs the full unit test suite.🤖 Generated with Claude Code