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

Impossible to have staking/validator duplicated operator address address #673

Open
dzmitryhil opened this issue Nov 3, 2023 · 0 comments
Assignees

Comments

@dzmitryhil
Copy link
Contributor

dzmitryhil commented Nov 3, 2023

Bug description

It is possible to have two validators one Jailed and one Active with different consensus addresses but the same operator address. Becasue the DB table validator_info contains the unique modifier for the operator_address .

Steps to reproduce

  • Create a validator with pub key 1, operator address 1, and self delegate address 1
  • Stop the validator and let it be jailed
  • Undelegate from the validator
  • Run BDJuno and let it sync the data (and keep it running)
  • Create a validator with pub key 2, operator address 1, and self delegate address 1
  • Check BDJuno logic the violates unique constraint "validator_info_operator_address_key" error will there
  • Try to update validators state using the cli bdjuno parse staking validators --home .bdjuno, the same error will error out.

Expected behavior

The BDJuno should save both validators.

@dzmitryhil dzmitryhil changed the title Impossible to have staking/validator operator address and self delegate address duplicated address Impossible to have staking/validator operator address duplicated address Nov 6, 2023
@dzmitryhil dzmitryhil changed the title Impossible to have staking/validator operator address duplicated address Impossible to have staking/validator duplicated operator address address Nov 6, 2023
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

No branches or pull requests

2 participants