Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

RPC endpoint chain_getEvents fails to get events by height #7598

Closed
Tracked by #7210
ishantiw opened this issue Sep 30, 2022 · 0 comments · Fixed by #7604
Closed
Tracked by #7210

RPC endpoint chain_getEvents fails to get events by height #7598

ishantiw opened this issue Sep 30, 2022 · 0 comments · Fixed by #7604

Comments

@ishantiw
Copy link
Contributor

Expected behavior

chain_getEvents should return all the events emitted during block execution for a block height

Actual behavior

Returns error when getting by height even if the event was emitted

 "error": {
        "message": "Specified key 0900000076 does not exist",
        "code": -32600
    }

Steps to reproduce

  • Run dpos-mainchain example app
  • Call chain_getEvents RPC for a specific height

Which version(s) does this affect? (Environment, OS, etc...)

  • 6.0.0-alpha.3
@ishantiw ishantiw moved this to Backlog in Lisk SDK Version 6.0.0 Sep 30, 2022
@shuse2 shuse2 added this to the Sprint 79 milestone Oct 3, 2022
shuse2 added a commit that referenced this issue Oct 5, 2022
Fix to return empty array when calling getEvents - Closes #7598
Repository owner moved this from Backlog to Done in Lisk SDK Version 6.0.0 Oct 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants