Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Research solutions to workaround xrpl-py/issues/632 #866

Open
godexsoft opened this issue Sep 20, 2023 · 3 comments
Open

Research solutions to workaround xrpl-py/issues/632 #866

godexsoft opened this issue Sep 20, 2023 · 3 comments
Labels
question Further information is requested
Milestone

Comments

@godexsoft
Copy link
Collaborator

See XRPLF/xrpl-py#632
Clio only supports validated ledgers and even provides a separate document describing ledger command functionality.
However, if there is a mix of rippled and clio nodes on s1/s2 then clients can have difficulties parsing the response as it may be different for rippled and clio. Let's try to find a solution to this (even if it's fixing response parsing on the library side).

@godexsoft godexsoft added the question Further information is requested label Sep 20, 2023
@cindyyan317
Copy link
Collaborator

cindyyan317 commented Sep 21, 2023

The issue in XRPLF/xrpl-py#632 seems not exist anymore.

INFO:__main__:Ledger(ledger_hash=None, ledger_index=None, method=<RequestMethod.LEDGER: 'ledger'>, id=None, full=False, accounts=False, transactions=False, expand=False, owner_funds=False, binary=False, queue=False, type=None)
INFO:__main__:Response(status=<ResponseStatus.ERROR: 'error'>, result={'error': 'notSupported', 'error_code': 75, 'error_message': 'Operation not supported.', 'type': 'response', 'request': {'method': 'ledger', 'params': [{'full': False, 'accounts': False, 'transactions': False, 'expand': False, 'owner_funds': False, 'binary': False, 'queue': False}]}}, id=None, type=<ResponseType.RESPONSE: 'response'>)

Clio has fixed this issue in 2.0. Previously, even "full", "accounts","queue" is false, clio will respond "notSupport". Currently , clio will forward the request to rippled if these fields are 'true'.

But clio indeed has different response structure as rippled. Rippled's response contains two sub node "closed", "open". Clio can not obtain open ledger, so there is only one layer in Clio's response. Clio should be friendly to the existing frontend code. Clio can add "closed" sub node.

@godexsoft
Copy link
Collaborator Author

We can add "closed" but that would change our existing API. I'm not sure there is another way though.

@Bronek
Copy link
Collaborator

Bronek commented Sep 22, 2023

@godexsoft there will be change in API when rippled version 2.0 is released. Since we will need to release clio with matching API changes, this seems like a good opportunity to unify the interface between the two.

@kuznetsss kuznetsss added this to the Future milestone Jun 25, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Clio Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: 📋 Backlog
Development

No branches or pull requests

4 participants