Sponsored Content
Skip to content

trivial: Fix tautological assert - #6393

Merged
ximinez merged 5 commits into
developfrom
ximinez/fix-keylet-assert
Feb 20, 2026
Merged

trivial: Fix tautological assert#6393
ximinez merged 5 commits into
developfrom
ximinez/fix-keylet-assert

Conversation

@ximinez

@ximinez ximinez commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

High Level Overview of Change

sle.getType() != ltANY || sle.getType() != ltCHILD can't be false. Change to &&.

Context of Change

Looks like a simple typo introduced in af5f28c#diff-952cdb0e645311ca00fe512132b41c9b4d7dd160e38ce8f4c1df0992cfa7aa5b which has managed to go unnoticed.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Before / After

This change should have no noticeable effect, unless there are existing bugs in Keylet handling. Since it's an assert, it won't have any effect on published packages.

Copilot AI review requested due to automatic review settings February 19, 2026 23:37
@ximinez ximinez added Bug Trivial Simple change with minimal effect, or already tested. Only needs one approval. labels Feb 19, 2026

Copilot AI 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.

Pull request overview

Fixes a tautological assertion in Keylet::check() so it correctly rejects invalid STLedgerEntry types (ltANY / ltCHILD), aligning with LedgerEntryType documentation that these special values are not valid on-ledger object types.

Changes:

  • Replace || with && in the XRPL_ASSERT condition inside Keylet::check().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…fix-keylet-assert

* commit '25cca465538a56cce501477f9e5e2c1c7ea2d84c':
  chore: Set clang-format width to 100 in config file (6387)
  chore: Set cmake-format width to 100 (6386)
  ci: Add clang tidy workflow to ci (6369)
…et-assert

* upstream/develop:
  chore: Apply clang-format width 100 (6387)
@ximinez
ximinez enabled auto-merge (squash) February 20, 2026 01:34
@codecov

codecov Bot commented Feb 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.8%. Comparing base (2c1fad1) to head (7c2a12c).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           develop   #6393     +/-   ##
=========================================
- Coverage     79.8%   79.8%   -0.0%     
=========================================
  Files          846     846             
  Lines        67746   67746             
  Branches      7561    7560      -1     
=========================================
- Hits         54059   54049     -10     
- Misses       13687   13697     +10     
Files with missing lines Coverage Δ
src/libxrpl/protocol/Keylet.cpp 100.0% <ø> (ø)

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

@ximinez ximinez 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 20, 2026
Copilot AI review requested due to automatic review settings February 20, 2026 01:35

Copilot AI 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.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ximinez
ximinez merged commit 6f35d94 into develop Feb 20, 2026
1 check passed
@ximinez
ximinez deleted the ximinez/fix-keylet-assert branch February 20, 2026 01:58
bthomee pushed a commit that referenced this pull request Apr 7, 2026
ximinez added a commit that referenced this pull request Apr 10, 2026
@ximinez ximinez modified the milestones: 3.1.3, 3.1.3 (develop) Apr 15, 2026
ximinez added a commit that referenced this pull request Apr 22, 2026
beartec-jpg pushed a commit to beartec-jpg/FalconLedger that referenced this pull request Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. Trivial Simple change with minimal effect, or already tested. Only needs one approval.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants