Skip to content

feat(drive)!: whitelist and filter banned nodes for validators - #1034

Merged
shumkov merged 6 commits into
v0.24-devfrom
fix/validators_set_rotation
May 8, 2023
Merged

shumkov merged 6 commits into
v0.24-devfrom
fix/validators_set_rotation

Conversation

@shumkov

@shumkov shumkov commented May 5, 2023 •

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

We faced today with another two problem on testnet:

  1. Rotation logic has a bug in v0.24: we filter out banned nodes after we select quorum so we could have one with valid nodes less than threshold
  2. There are many 3rd party nodes without platform so we basically have the same issue like in the fist problem.

What was done?

  • Filter out banned master nodes before we choice a quorum
  • Added a whitelist for testnet with DCG only nodes
  • Disabled quorum expiration logic because it doesn't work properly
  • Do not rotate quorum if there is not other valid candidates

How Has This Been Tested?

On testnet

Breaking Changes

Validator rotation logic is changed. Previous blockchain data won't be compatible.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants