Skip to content

Conversation

emreariyurek
Copy link
Contributor

@emreariyurek emreariyurek commented Sep 8, 2025

Fix #2540

Precondition: Ensure that the changes from 2540 are applied to xrpl.

@emreariyurek emreariyurek force-pushed the emre_2540_match_ledger_entry_error_codes branch from 336e2d3 to a0d827c Compare September 8, 2025 17:48
Copy link
Collaborator

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

Thank you for working on this 👍 I just have one question. Otherwise it looks good and I believe it matches the rippled PR 👍


if (input.index) {
key = ripple::uint256{std::string_view(*(input.index))};
if (key.isZero())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please tell me where this came from? is that something they changed on rippled side too or was it missing all along in Clio?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It comes from rippled side - PR5237

@godexsoft godexsoft added the on hold For issues that currently wait on other issues label Sep 17, 2025
@godexsoft
Copy link
Collaborator

As @emreariyurek suggested (and is evident from failing CI) this requires a newer libXRPL than what we currently have. Putting this on hold till then.

@PeterChen13579
Copy link
Collaborator

@godexsoft @emreariyurek Ah, so I just checked. The PR to update ledger entry error codes is not included in libxrpl 2.6.1, we can move this to next release of clio 👍

Copy link
Collaborator

@PeterChen13579 PeterChen13579 left a comment

Choose a reason for hiding this comment

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

Thanks for doing this task @emreariyurek ! Just one quick comment on my side

if (!ledgerObject || ledgerObject->empty()) {
if (not input.includeDeleted)
return Error{Status{ClioError::RpcEntryNotFound}};
return Error{Status{RippledError::rpcENTRY_NOT_FOUND}};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since Rippled has its own error code now, would you mind changing ClioError::RpcEntryNotFound to RippledError::rpcENTRY_NOT_FOUND, in all parts of clio and removing the Clio error code completely? Or feel free to create another issue for this. Thanks! 😃

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done here: #2661

@godexsoft
Copy link
Collaborator

@godexsoft @emreariyurek Ah, so I just checked. The PR to update ledger entry error codes is not included in libxrpl 2.6.1, we can move this to next release of clio 👍

Yeah, that was expected since this was not in the beta nor in the rc we tried with.. next release it is 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

on hold For issues that currently wait on other issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Match ledger_entry error codes with rippled

4 participants