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

get_ops_in_block return empty results for no irreversible block #3155

Open
oflyhigh opened this issue Nov 13, 2018 · 0 comments
Open

get_ops_in_block return empty results for no irreversible block #3155

oflyhigh opened this issue Nov 13, 2018 · 0 comments

Comments

@oflyhigh
Copy link

oflyhigh commented Nov 13, 2018

get_ops_in_block API for head block or block which number > last_irreversible_block_num, it returned empty results.

Steps:

  • get the head_block_number

{"jsonrpc": "2.0", "method": "condenser_api.get_dynamic_global_properties", "params": [], "id": 1}

  • call get_ops_in_block with head_block_number immediately. where xxxx is the head_block_number

{"jsonrpc": "2.0", "method": "condenser_api.get_ops_in_block", "params": [xxxx], "id": 1}

Results:

{'id': 1, 'jsonrpc': '2.0', 'result': []}

If this is what it should be, I think it should be better to mark this API get_ops_in_block can only apply to irreversible block in documents.

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

No branches or pull requests

2 participants