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

Update lisk-chain to save/delete events together with block #7125

Closed
Tracked by #6950
shuse2 opened this issue Apr 22, 2022 · 0 comments · Fixed by #7157
Closed
Tracked by #6950

Update lisk-chain to save/delete events together with block #7125

shuse2 opened this issue Apr 22, 2022 · 0 comments · Fixed by #7157
Assignees
Milestone

Comments

@shuse2
Copy link
Member

shuse2 commented Apr 22, 2022

Description

  • Update lisk-chain to store data as below
const DB_KEY_BLOCK_EVENTS = Buffer.from([9]);
key = DB_KEY_BLOCK_EVENTS || uint32(height)
value = {
  events: {
    moduleID: number,
    typeID: number,
    topics: Buffer[],
    data: Buffer,
    index: number,
  }[]
}
  • save and remove functions should receive the events as parameter and store/remove accordingly
  • Genesis block also should receive the events as input

Acceptance Criteria

  • storing data is tested with unit and integration tests
  • All builds and tests are passing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants