Skip to content

refactor: Address PR comments after the modularisation PRs#6389

Merged
bthomee merged 19 commits intodevelopfrom
a1q123456/cleanup-pr-comments-after-tx-modularisation
Mar 30, 2026
Merged

refactor: Address PR comments after the modularisation PRs#6389
bthomee merged 19 commits intodevelopfrom
a1q123456/cleanup-pr-comments-after-tx-modularisation

Conversation

@a1q123456
Copy link
Copy Markdown
Contributor

High Level Overview of Change

Context of Change

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Performance (increase or change in throughput and/or latency)
  • Tests (you added tests for code that already exists, or your new feature included in this PR)
  • Documentation update
  • Chore (no impact to binary, e.g. .gitignore, formatting, dropping support for older tooling)
  • Release

API Impact

  • Public API: New feature (new methods and/or new fields)
  • Public API: Breaking change (in general, breaking changes should only impact the next api_version)
  • libxrpl change (any change that may affect libxrpl or dependents of libxrpl)
  • Peer protocol change (must be backward compatible or bump the peer protocol version)

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>
@a1q123456 a1q123456 force-pushed the a1q123456/cleanup-pr-comments-after-tx-modularisation branch from 9fca482 to ce23f20 Compare February 19, 2026 15:59
@a1q123456 a1q123456 marked this pull request as ready for review February 19, 2026 16:00
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 19, 2026

Codecov Report

❌ Patch coverage is 71.30435% with 66 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.5%. Comparing base (3d9c545) to head (02fc2f3).
⚠️ Report is 4 commits behind head on develop.

Files with missing lines Patch % Lines
src/xrpld/app/misc/NetworkOPs.cpp 67.8% 48 Missing ⚠️
...rc/xrpld/app/rdb/backend/detail/SQLiteDatabase.cpp 50.0% 9 Missing ⚠️
src/xrpld/app/rdb/backend/detail/Node.cpp 60.0% 6 Missing ⚠️
src/libxrpl/rdb/DatabaseCon.cpp 0.0% 1 Missing ⚠️
src/libxrpl/tx/transactors/system/Change.cpp 75.0% 1 Missing ⚠️
src/xrpld/app/ledger/OrderBookDBImpl.cpp 80.0% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            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     
Files with missing lines Coverage Δ
include/xrpl/core/StartUpType.h 100.0% <ø> (ø)
include/xrpl/ledger/OrderBookDB.h 100.0% <ø> (ø)
include/xrpl/rdb/DatabaseCon.h 100.0% <100.0%> (ø)
include/xrpl/rdb/RelationalDatabase.h 100.0% <ø> (ø)
include/xrpl/tx/ApplyContext.h 100.0% <ø> (ø)
include/xrpl/tx/Transactor.h 100.0% <ø> (ø)
src/libxrpl/tx/Transactor.cpp 93.3% <100.0%> (+<0.1%) ⬆️
...c/libxrpl/tx/transactors/account/SignerListSet.cpp 91.9% <100.0%> (ø)
src/libxrpl/tx/transactors/check/CheckCancel.cpp 93.5% <100.0%> (ø)
src/libxrpl/tx/transactors/check/CheckCash.cpp 92.6% <100.0%> (ø)
... and 21 more

... and 3 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@godexsoft godexsoft left a comment

Choose a reason for hiding this comment

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

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
@a1q123456 a1q123456 requested a review from godexsoft February 24, 2026 15:26
Copy link
Copy Markdown
Contributor

@godexsoft godexsoft left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Copy Markdown
Contributor

@kuznetsss kuznetsss left a comment

Choose a reason for hiding this comment

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

👍

…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
@bthomee
Copy link
Copy Markdown
Collaborator

bthomee commented Mar 20, 2026

/ai-review

Copy link
Copy Markdown
Contributor

@xrplf-ai-reviewer xrplf-ai-reviewer bot left a comment

Choose a reason for hiding this comment

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

Code structure and type safety improvements across database and consensus handling.

Review by Claude Opus 4.6 · Prompt: V12

…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>
@a1q123456 a1q123456 changed the title Address PR comments after the modularisation PRs refactor: Address PR comments after the modularisation PRs Mar 25, 2026
Copy link
Copy Markdown
Contributor

@xrplf-ai-reviewer xrplf-ai-reviewer bot left a comment

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

@xrplf-ai-reviewer xrplf-ai-reviewer bot left a comment

Choose a reason for hiding this comment

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

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>
Copy link
Copy Markdown
Contributor

@xrplf-ai-reviewer xrplf-ai-reviewer bot left a comment

Choose a reason for hiding this comment

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

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>
Copy link
Copy Markdown
Contributor

@xrplf-ai-reviewer xrplf-ai-reviewer bot left a comment

Choose a reason for hiding this comment

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

Two low-to-medium issues flagged inline: a lost runtime type assertion in NetworkOPs.cpp and a misleading concept constraint in RelationalDatabase.h.

Review by Claude Opus 4.6 · Prompt: V12

@github-actions
Copy link
Copy Markdown

This PR has conflicts, please resolve them in order for the PR to be reviewed.

@github-actions
Copy link
Copy Markdown

All conflicts have been resolved. Assigned reviewers can now start or resume their review.

@a1q123456 a1q123456 removed the request for review from pratikmankawde March 30, 2026 13:53
@a1q123456 a1q123456 added the Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. label Mar 30, 2026
@bthomee
Copy link
Copy Markdown
Collaborator

bthomee commented Mar 30, 2026

@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.

@bthomee
Copy link
Copy Markdown
Collaborator

bthomee commented Mar 30, 2026

@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.

@bthomee bthomee enabled auto-merge March 30, 2026 13:59
Copy link
Copy Markdown
Contributor

@xrplf-ai-reviewer xrplf-ai-reviewer bot left a comment

Choose a reason for hiding this comment

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

Two issues flagged inline: a removed type-safety guard in the Sqlite dispatch branch, and an unguarded this capture in the job queue lambda.

Review by Claude Opus 4.6 · Prompt: V12

Copy link
Copy Markdown
Contributor

@xrplf-ai-reviewer xrplf-ai-reviewer bot left a comment

Choose a reason for hiding this comment

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

Gave this a look

One redundant concept constraint flagged inline — see line 461.


Review by ReviewBot 🤖

Review by Claude Opus 4.6 · Prompt: V12

@bthomee bthomee added this pull request to the merge queue Mar 30, 2026
Merged via the queue into develop with commit 3a477e4 Mar 30, 2026
33 of 34 checks passed
@bthomee bthomee deleted the a1q123456/cleanup-pr-comments-after-tx-modularisation branch March 30, 2026 15:42
bthomee added a commit that referenced this pull request Mar 30, 2026
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
Co-authored-by: Bart <bthomee@users.noreply.github.com>
bthomee added a commit that referenced this pull request Mar 30, 2026
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
Co-authored-by: Bart <bthomee@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants