-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
account_lines with "peer" property returns 0 lines #4375
Comments
#4361 resolves the issue with the Please read the description of that PR for more details. Additionally, I wrote a simple, ugly bash script to get the lines for the accounts mentioned above, iterating over the markers. I fired up an instance of rippled built from that PR #4361.
And here's the output:
As noted, rQALHdY5js37FE152bVZgVN6KnmgQp615 doesn't have any lines against the given peer, but the other one does. However, it takes 4 iterations with markers to find it. |
Thanks @ximinez. Do you know if there will be a fix for the account_lines command when using the |
@nthpixel I don't think there are any plans for a fix, because the behavior is intentional to the best of my knowledge. As pointed out in the description for #4361,
In other words, going through all of the account objects to find the line(s) that are associated with the peer would defeat the purpose of the linked optimization, which was implemented to reduce load on rippled servers. I could see an argument for implementing functionality to return more lines on an admin connection (bypassing the optimization), but I don't know how complicated that would be to implement, and it would require running your own instance of rippled to take advantage of it. |
@ximinez got it. Thank you for the explanation. |
Given that this is expected behavior, can we close this issue @nthpixel ? |
@intelliot Yes, thank you. |
Might be related to #4354
Encountered 2 wallets that should return trustlines when calling
account_lines
with thepeer
property set, but returns an empty array in thelines
response. The wallets are raY2vCNbVUCiiEpQCU4VW7DS6p9easgFep and rQALHdY5js37FE152bVZgVN6KnmgQp615.The peer address is rDbAT7ZnkBBxKYL8myUY68c1chaKLBbNKw and the token is xAliens.
Trustline for rQALHdY5js37FE152bVZgVN6KnmgQp615 has since been removed by the user.
Steps to Reproduce
https://xrpl.org/websocket-api-tool.html#account_lines
Expected Result
Response with one object in the
lines
property.Actual Result
This issue might be related to #4354 because both wallets have many trustlines and making subsequent calls with
marker
returns an error.The text was updated successfully, but these errors were encountered: