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

Add EligibleDelegateStore to DPoS module #7663

Closed
Tracked by #7622
shuse2 opened this issue Oct 19, 2022 · 0 comments
Closed
Tracked by #7622

Add EligibleDelegateStore to DPoS module #7663

shuse2 opened this issue Oct 19, 2022 · 0 comments
Assignees
Milestone

Comments

@shuse2
Copy link
Collaborator

shuse2 commented Oct 19, 2022

Description

  • Add EligibleDelegateStore as described in LIP-0057
  • Add getKey(address: Buffer, newWeight: bigint) function to the store
  • Add getTop(count: number) => { weight: bigint, address: Buffer }[] function to the store.
    • it should be iterated in reverse order
  • Add getAll() { weight: bigint, address: Buffer }[] function to the store

Acceptance Criteria

  • All functions are unit tested with in memory store
@shuse2 shuse2 moved this to Backlog in Lisk SDK Version 6.0.0 Oct 19, 2022
@shuse2 shuse2 added this to the Sprint 81 milestone Oct 24, 2022
@Incede Incede self-assigned this Oct 25, 2022
shuse2 added a commit that referenced this issue Oct 28, 2022
### What was the problem?

This PR resolves #7663 

### How was it solved?

Implement as specified

### How was it tested?

Added unit tests
@shuse2 shuse2 closed this as completed Oct 28, 2022
Repository owner moved this from Backlog to Done in Lisk SDK Version 6.0.0 Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants