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

Wrong selection for top 101 delegates as active delegates - Closes #5123 #5126

Merged
merged 5 commits into from
Apr 7, 2020

Conversation

nazarhussain
Copy link
Contributor

What was the problem?

In one edge case, we were selecting 103 as active delegates.

This PR resolves #5123

How was it solved?

Fixed the max slots for active delegates to 101.

How was it tested?

cd elements/lisk-dpos
yarn test

@nazarhussain nazarhussain requested a review from shuse2 April 7, 2020 14:57
@nazarhussain nazarhussain self-assigned this Apr 7, 2020
elements/lisk-dpos/src/delegates_list.ts Outdated Show resolved Hide resolved
elements/lisk-dpos/src/delegates_list.ts Outdated Show resolved Hide resolved
@shuse2 shuse2 requested review from shuse2 and ManuGowda April 7, 2020 15:26
Copy link
Collaborator

@shuse2 shuse2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, just minor comment

elements/lisk-dpos/src/delegates_list.ts Outdated Show resolved Hide resolved
elements/lisk-dpos/src/delegates_list.ts Outdated Show resolved Hide resolved
@nazarhussain nazarhussain requested a review from shuse2 April 7, 2020 15:54
@shuse2 shuse2 merged commit 9038ab4 into development Apr 7, 2020
@shuse2 shuse2 deleted the 5123-dpos-standby-delegates branch April 7, 2020 17:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong selection for top 101 delegates as active delegates
3 participants