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

PoS: fix tendermint inactive validator set update - 0.14.0 #1146

Merged
merged 9 commits into from
Feb 21, 2023

Conversation

tzemanovic
Copy link
Member

forward port of #1144 for 0.14.0

@juped juped force-pushed the tomas/tm-validator-set-update branch from 16e1f10 to ec8882c Compare February 11, 2023 19:29
@juped
Copy link
Member

juped commented Feb 11, 2023

rewound by 1 commit; the wip tests are available at tomas/validator-set-update-tests

@tzemanovic tzemanovic marked this pull request as ready for review February 13, 2023 15:09
@tzemanovic
Copy link
Member Author

pls update wasm

)
.unwrap();

update_validator_deltas(s, &params, addr, stake.change(), epoch)
Copy link
Contributor

Choose a reason for hiding this comment

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

is it useful at all (for consistency) to update total deltas too? Maybe not necessary for the test.

Copy link
Member Author

Choose a reason for hiding this comment

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

it's needed for the validator_set_update_tendermint checks as it relies on the data to determine the updates

Copy link
Contributor

@brentstone brentstone left a comment

Choose a reason for hiding this comment

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

LGTM!

@Fraccaman
Copy link
Member

pls spawn devnet [anoma-devnet-draft,3,heliaxdev@1be9883,ON]

@github-actions
Copy link
Contributor

Devnet with chain id internal-devnet-6be.86067e06a5 spawned succesfully!

juped added a commit that referenced this pull request Feb 21, 2023
* tomas/tm-validator-set-update:
  test/PoS: add one more test case for TM validator set update
  changelog: add #1146
  wasm: update checksums
  PoS: turn prints into tracing::debug in validator_set_update_tendermint
  PoS: fix skipping 0 voting power prev. consensus validators in TM update
  test/PoS: test tendermint validator set updates
  PoS: fix update_validator_set to update validator's state accordingly
  pos/types: add PartialEq on ValidatorSetUpdate and ConsensusValidator
  pos: refactor validator_set_update_tendermint to make easier to test
@Fraccaman
Copy link
Member

pls spawn devnet [anoma-devnet-draft,3,heliaxdev@1be9883,ON]

@github-actions
Copy link
Contributor

Devnet with chain id internal-devnet-6be.fcb131d05a spawned succesfully!

@juped juped merged commit 00fcc69 into main Feb 21, 2023
@juped juped deleted the tomas/tm-validator-set-update branch February 21, 2023 17:01
bengtlofgren pushed a commit that referenced this pull request May 11, 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

Successfully merging this pull request may close these issues.

None yet

4 participants