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

RPC - accounts_pending return invalid json when account does not have pending transactions #896

Closed
rotilho opened this issue May 28, 2018 · 1 comment

Comments

@rotilho
Copy link

rotilho commented May 28, 2018

When using account_pending action the node returns invalid json (empty string instead of empty map)

Request: {"accounts":["xrb_3534c73cym6pbb9nr6f1waqc3ta98o1nfbupy4w74h9xzp5zi3mbturb3ujn"],"threshold":"1","count":"9223372036854775807","action":"accounts_pending"}

Response: {"blocks":{"xrb_3534c73cym6pbb9nr6f1waqc3ta98o1nfbupy4w74h9xzp5zi3mbturb3ujn":""}}

Correct response {"blocks":{"xrb_3534c73cym6pbb9nr6f1waqc3ta98o1nfbupy4w74h9xzp5zi3mbturb3ujn":"{}"}}

@PlasmaPower
Copy link
Contributor

Duplicate of #499. This is a problem with the boost JSON library we're currently using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants