Sponsored Content
Skip to content

Modularise WalletDB and Manifest - #6223

Merged
bthomee merged 9 commits into
developfrom
a1q123456/modularise-wallet-db-and-manifest
Feb 11, 2026
Merged

Modularise WalletDB and Manifest#6223
bthomee merged 9 commits into
developfrom
a1q123456/modularise-wallet-db-and-manifest

Conversation

@a1q123456

@a1q123456 a1q123456 commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

High Level Overview of Change

This PR modularises the walletdb and manifest. Please be aware that the wallet db actually has nothing to do with account wallets and it stores node configuration, which is why it depends on Manifest.

Context of Change

To help modularisation, the wallet db has to be modularised.

This PR is part of the modularisation of the transactors. See all PRs here:
#6222
#6223
#6224
#6225
#6226
#6227
#6228

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

@a1q123456
a1q123456 requested a review from a team January 15, 2026 12:23
@a1q123456 a1q123456 changed the title A1q123456/modularise wallet db and manifest Modularise wallet db and manifest Jan 15, 2026
@a1q123456 a1q123456 changed the title Modularise wallet db and manifest Modularise WalletDB and Manifest Jan 15, 2026
@a1q123456
a1q123456 force-pushed the a1q123456/modularise-wallet-db-and-manifest branch from af0b679 to 4e554cc Compare January 15, 2026 13:22
@codecov

codecov Bot commented Jan 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.76471% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.9%. Comparing base (e11f619) to head (e6725f3).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
src/libxrpl/rdb/DatabaseCon.cpp 64.3% 10 Missing ⚠️
...rc/xrpld/app/rdb/backend/detail/SQLiteDatabase.cpp 65.0% 7 Missing ⚠️
src/xrpld/core/detail/Config.cpp 98.6% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           develop   #6223     +/-   ##
=========================================
- Coverage     79.9%   79.9%   -0.0%     
=========================================
  Files          840     840             
  Lines        65514   65522      +8     
  Branches      7269    7249     -20     
=========================================
+ Hits         52360   52362      +2     
- Misses       13154   13160      +6     
Files with missing lines Coverage Δ
include/xrpl/core/PeerReservationTable.h 25.0% <ø> (ø)
include/xrpl/core/ServiceRegistry.h 100.0% <ø> (ø)
include/xrpl/core/StartUpType.h 100.0% <100.0%> (ø)
include/xrpl/rdb/DatabaseCon.h 100.0% <100.0%> (ø)
include/xrpl/rdb/SociDB.h 100.0% <ø> (ø)
include/xrpl/server/Manifest.h 79.2% <ø> (ø)
src/libxrpl/rdb/SociDB.cpp 60.7% <ø> (ø)
src/libxrpl/server/State.cpp 88.1% <ø> (ø)
src/libxrpl/server/Vacuum.cpp 0.0% <ø> (ø)
src/libxrpl/server/Wallet.cpp 75.9% <ø> (ø)
... and 21 more

... and 4 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.

@a1q123456
a1q123456 force-pushed the a1q123456/add_service_registry branch 3 times, most recently from 7c5faca to 09b52e4 Compare February 3, 2026 16:23
@a1q123456
a1q123456 force-pushed the a1q123456/modularise-wallet-db-and-manifest branch from c9dbea1 to 8dc9483 Compare February 3, 2026 16:43
Base automatically changed from a1q123456/add_service_registry to develop February 3, 2026 19:08
@a1q123456
a1q123456 force-pushed the a1q123456/modularise-wallet-db-and-manifest branch 2 times, most recently from 572f5b2 to 650dc4f Compare February 4, 2026 11:27

@godexsoft godexsoft left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Leaving some suggestions.

Comment thread cmake/XrplCore.cmake Outdated
Comment thread include/xrpl/core/StartUpType.h
isStopping() const = 0;

virtual beast::Journal
journal(std::string const& name) = 0;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this should be getJournal and getLog to match other service locator accessors (maybe in another pr)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment thread include/xrpl/core/StartUpType.h
@a1q123456
a1q123456 requested a review from godexsoft February 4, 2026 13:27
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>
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
@a1q123456
a1q123456 force-pushed the a1q123456/modularise-wallet-db-and-manifest branch from 0dd8b72 to b3f0361 Compare February 4, 2026 15:11
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
@a1q123456
a1q123456 force-pushed the a1q123456/modularise-wallet-db-and-manifest branch from b3f0361 to c0bbbb2 Compare February 4, 2026 15:30
Comment thread src/libxrpl/rdb/DatabaseCon.cpp
Comment thread src/libxrpl/rdb/DatabaseCon.cpp
Comment thread src/xrpld/core/detail/Config.cpp Outdated
Comment thread src/xrpld/core/detail/Config.cpp Outdated
}
else
{
Throw<std::runtime_error>("Invalid journal_mode value: " + journal_mode);

@pratikmankawde pratikmankawde Feb 4, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we really want to terminate if journal_mode is invalid? Should it not revert to a default value?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Same, I don't think we should correct anything and try to hide the problem here.

Comment thread src/xrpld/core/detail/Config.cpp Outdated
// #synchronous Valid values : off, normal, full, extra
if (set(synchronous, "synchronous", sqlite) && !safety_level.empty())
{
Throw<std::runtime_error>(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't we log these errors instead and continue with a default correct combination of values?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't think so. If the user input is wrong, we definitely want the user to correct it. The user may be surprised otherwise.

@pratikmankawde pratikmankawde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Left some comments.

Comment thread src/xrpld/core/detail/Config.cpp Outdated

@godexsoft godexsoft left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM for a refactoring PR 👍 :rage1:
Please create issues for everything that has been noted by @pratikmankawde and myself.

Comment thread src/libxrpl/rdb/DatabaseCon.cpp
@a1q123456

Copy link
Copy Markdown
Contributor Author

RIPD-4880 Ticket created.

@pratikmankawde pratikmankawde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved with one suggestion about cleaning up the lambda in src/xrpld/core/detail/Config.cpp::setup_Databasecon(..)

Signed-off-by: JCW <a1q123456@users.noreply.github.com>
@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 Feb 11, 2026
@bthomee
bthomee enabled auto-merge (squash) February 11, 2026 13:27
@bthomee
bthomee merged commit ef28469 into develop Feb 11, 2026
1 check passed
@bthomee
bthomee deleted the a1q123456/modularise-wallet-db-and-manifest branch February 11, 2026 13:42
a1q123456 added a commit that referenced this pull request Feb 19, 2026
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
@mvadari mvadari added this to the 3.2.0 milestone May 20, 2026
beartec-jpg pushed a commit to beartec-jpg/FalconLedger that referenced this pull request Jun 1, 2026
This change modularizes the `WalletDB` and `Manifest`. Note that the wallet db has nothing to do with account wallets and it stores node configuration, which is why it depends on the manifest code.
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.

5 participants