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

Mixed RPC return types #617

Closed
acudworth opened this issue Feb 14, 2018 · 2 comments
Closed

Mixed RPC return types #617

acudworth opened this issue Feb 14, 2018 · 2 comments

Comments

@acudworth
Copy link

The pending RPC call returns an empty string when there are no pending blocks but returns an object (with hashes as values) when there are pending blocks.

It would be more appropriate to return an empty object {} when there are no pending blocks.

Assuming this happens for other RPC calls too..

@PlasmaPower
Copy link
Contributor

See also: #499. We'll need a new JSON library to fix this.

@rkeene
Copy link
Contributor

rkeene commented Aug 23, 2018

Closing this as a duplicate of #499

@rkeene rkeene closed this as completed Aug 23, 2018
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

3 participants