refactor: Address PR comments after the modularisation PRs#6389
refactor: Address PR comments after the modularisation PRs#6389
Conversation
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
9fca482 to
ce23f20
Compare
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #6389 +/- ##
=========================================
- Coverage 81.5% 81.5% -0.0%
=========================================
Files 999 999
Lines 74456 74463 +7
Branches 7559 7558 -1
=========================================
- Hits 60653 60652 -1
- Misses 13803 13811 +8
🚀 New features to boost your workflow:
|
godexsoft
left a comment
There was a problem hiding this comment.
Nice! I am not a fan of how we chain accessors on registry to get to the service/dependency a component needs but i think we can improve this later by injecting deps by their interfaces directly or developing a smarter compile-time registry wrapper. For now this is an improvement 👍
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
…pr-comments-after-tx-modularisation Signed-off-by: JCW <a1q123456@users.noreply.github.com> # Conflicts: # include/xrpl/rdb/DatabaseCon.h # src/libxrpl/tx/transactors/Change.cpp # src/libxrpl/tx/transactors/PayChan.cpp # src/test/app/LedgerLoad_test.cpp # src/xrpld/app/ledger/OrderBookDBImpl.cpp # src/xrpld/app/main/Application.cpp # src/xrpld/app/misc/NetworkOPs.cpp # src/xrpld/app/rdb/backend/detail/Node.cpp # src/xrpld/app/rdb/backend/detail/SQLiteDatabase.cpp
…pr-comments-after-tx-modularisation
…pr-comments-after-tx-modularisation Signed-off-by: JCW <a1q123456@users.noreply.github.com> # Conflicts: # src/libxrpl/tx/transactors/escrow/Escrow.cpp # src/libxrpl/tx/transactors/payment_channel/PayChan.cpp # src/xrpld/app/misc/NetworkOPs.cpp
|
/ai-review |
…pr-comments-after-tx-modularisation Signed-off-by: JCW <a1q123456@users.noreply.github.com> # Conflicts: # src/xrpld/app/ledger/OrderBookDBImpl.cpp # src/xrpld/app/main/Main.cpp # src/xrpld/app/misc/NetworkOPs.cpp # src/xrpld/app/rdb/backend/detail/Node.cpp
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
There was a problem hiding this comment.
Three design-level issues flagged inline: a sentinel-value ambiguity in ledger range SQL generation, a lost type-safety assertion from removing safe_downcast, and a pervasive std::reference_wrapper substitution that adds ergonomic cost without benefit.
Review by Claude Opus 4.6 · Prompt: V12
There was a problem hiding this comment.
Took a pass through this
Two correctness issues flagged: a stale guard condition in Node.cpp that checks options.maxLedger while the body uses options.ledgerRange.max (high severity), and a std::convertible_to constraint on rangeCheckedCast that defeats its safe-narrowing purpose. Two lower-severity lifetime concerns noted for async lambdas capturing this/std::ref without shutdown-ordering guarantees — see inline.
Review by ReviewBot 🤖
Review by Claude Opus 4.6 · Prompt: V12
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
There was a problem hiding this comment.
Three design concerns flagged inline: a safe_downcast regression in NetworkOPs.cpp, an over-constrained concept in RelationalDatabase.h, and a pervasive reference_wrapper ergonomics issue in ApplyContext.h (and related structs).
Review by Claude Opus 4.6 · Prompt: V12
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
|
This PR has conflicts, please resolve them in order for the PR to be reviewed. |
…pr-comments-after-tx-modularisation
|
All conflicts have been resolved. Assigned reviewers can now start or resume their review. |
|
@a1q123456 I'll wait with merging this PR until the MPT on DEX PR has been merged, as that one is a bit on the large size and this PR might introduce conflicts that will be harder to resolve than the other way around. |
@gregtatcam said it was ok to merge this one - will have it done the moment the CI passes. |
Signed-off-by: JCW <a1q123456@users.noreply.github.com> Co-authored-by: Bart <bthomee@users.noreply.github.com>
Signed-off-by: JCW <a1q123456@users.noreply.github.com> Co-authored-by: Bart <bthomee@users.noreply.github.com>
High Level Overview of Change
Context of Change
Type of Change
.gitignore, formatting, dropping support for older tooling)API Impact
libxrplchange (any change that may affectlibxrplor dependents oflibxrpl)