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

feat: Adds validator qgb checks tests #138

Conversation

rach-id
Copy link
Member

@rach-id rach-id commented May 5, 2022

Adds to #114

@rach-id rach-id added enhancement New feature or request C: QGB labels May 5, 2022
@rach-id rach-id self-assigned this May 5, 2022
@rach-id rach-id marked this pull request as draft May 5, 2022 22:31
@rach-id rach-id changed the title Adds validator qgb checks tests feat: WIP Adds validator qgb checks tests May 5, 2022
@rach-id rach-id marked this pull request as ready for review May 9, 2022 14:58
@rach-id rach-id changed the title feat: WIP Adds validator qgb checks tests feat: Adds validator qgb checks tests May 9, 2022
@rach-id rach-id requested a review from evan-forbes May 9, 2022 14:59
Copy link
Member

@evan-forbes evan-forbes left a comment

Choose a reason for hiding this comment

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

mostly simple additions! 👍 utACK

I'm slightly concerned about upgrading a chain to use the QGB module and this change, as we'd either have to pass some address similar to the zero address, or have all of the validators eth address/orchestrator address ahead of time before upgrading.

@rach-id
Copy link
Member Author

rach-id commented May 9, 2022

as we'd either have to pass some address similar to the zero address

You're right. But I thought that we will have some migration script that would change the state without depending on messages to do state transitions. If it is not, then I should change.

@evan-forbes
Copy link
Member

Yeah, we can have an upgrade handler do whatever we need without getting that info ahead of time. I'm still worried about it though, at least until we can test upgrade, as having fake addresses as placeholders seems super hacky.

@rach-id
Copy link
Member Author

rach-id commented May 9, 2022

@evan-forbes So should I remove the zero address check ? until we decide ?

@evan-forbes
Copy link
Member

nah, let's keep it. After we get mvp working on an integration test, then we'll plan out the upgrade then

@rach-id
Copy link
Member Author

rach-id commented May 9, 2022

Merging then?

@rach-id
Copy link
Member Author

rach-id commented May 9, 2022

Just renamed the branch we're targeting to: release/v0.44.x-celestia-qgb. I will make sure it will always have the latest celestia branch changes (hopefuly). Then, we merge it to the default branch once we decide to merge QGB module to celestia-app.

@evan-forbes
Copy link
Member

sounds good 👍

@rach-id rach-id merged commit 11b8be9 into celestiaorg:release/v0.44.x-celestia-qgb May 9, 2022
@rach-id rach-id deleted the adds_validator_qgb_checks_tests branch May 9, 2022 18:55
rach-id added a commit to rach-id/cosmos-sdk that referenced this pull request May 9, 2022
* first pass on tests fixes

* fixes the rest of unit tests

* remove unnecessary comments

* uses default eth address when starting sim network

* cosmetics

* comments failing test

* comments failing test

* adds orchestrator/ethereum address checks for validators when creating and editing

* uses correct error codes for eth/orch address errors

* uncomments test and fixes it from commit 434b308

* updates tests to be able to set orch/eth address when creating validators

* adds zero eth address check when creating/updating validator

* attempts to fix duplicate eth address in sim network

* adds validator check tests

* revert squashed changes

* uses unwrapped context for msg_server orch/eth validation

* increase DefaultGenTxGas to accomodate new qgb validator changes

* scaffolds an ethereum address from orchestrator address in staking simulation to have a deterministic way of creating it

* fix eth address creation from orch address in operations

* increase DefaultGenTxGas

* increase DefaultGenTxGas

* remove unnecessary eth address
rach-id added a commit to rach-id/cosmos-sdk that referenced this pull request Jul 27, 2022
* first pass on tests fixes

* fixes the rest of unit tests

* remove unnecessary comments

* uses default eth address when starting sim network

* cosmetics

* comments failing test

* comments failing test

* adds orchestrator/ethereum address checks for validators when creating and editing

* uses correct error codes for eth/orch address errors

* uncomments test and fixes it from commit 434b308

* updates tests to be able to set orch/eth address when creating validators

* adds zero eth address check when creating/updating validator

* attempts to fix duplicate eth address in sim network

* adds validator check tests

* revert squashed changes

* uses unwrapped context for msg_server orch/eth validation

* increase DefaultGenTxGas to accomodate new qgb validator changes

* scaffolds an ethereum address from orchestrator address in staking simulation to have a deterministic way of creating it

* fix eth address creation from orch address in operations

* increase DefaultGenTxGas

* increase DefaultGenTxGas

* remove unnecessary eth address
rach-id added a commit to rach-id/cosmos-sdk that referenced this pull request Aug 4, 2022
* first pass on tests fixes

* fixes the rest of unit tests

* remove unnecessary comments

* uses default eth address when starting sim network

* cosmetics

* comments failing test

* comments failing test

* adds orchestrator/ethereum address checks for validators when creating and editing

* uses correct error codes for eth/orch address errors

* uncomments test and fixes it from commit 434b308

* updates tests to be able to set orch/eth address when creating validators

* adds zero eth address check when creating/updating validator

* attempts to fix duplicate eth address in sim network

* adds validator check tests

* revert squashed changes

* uses unwrapped context for msg_server orch/eth validation

* increase DefaultGenTxGas to accomodate new qgb validator changes

* scaffolds an ethereum address from orchestrator address in staking simulation to have a deterministic way of creating it

* fix eth address creation from orch address in operations

* increase DefaultGenTxGas

* increase DefaultGenTxGas

* remove unnecessary eth address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: QGB enhancement New feature or request
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants