-
Notifications
You must be signed in to change notification settings - Fork 42
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: epoching to replace staking msg server #457
Conversation
Co-authored-by: Runchao Han <[email protected]> Co-authored-by: Mauro Lacy <[email protected]> Co-authored-by: Mauro Lacy <[email protected]> Co-authored-by: Gurjot Singh <[email protected]> Co-authored-by: hiepmai-babylonchain <[email protected]> Co-authored-by: lesterli <[email protected]> Co-authored-by: Cirrus Gai <[email protected]> Co-authored-by: Runchao Han <[email protected]> Co-authored-by: Mauro Lacy <[email protected]> Co-authored-by: Filippos Malandrakis <[email protected]>
- Copy partial implementation from sdk [gentx](https://github.com/cosmos/cosmos-sdk/blob/eba0b9e9c2b5da19ccb8b4b189c1f0747830a8fa/x/genutil/client/cli/gentx.go#L31) but modified to generate `MsgWrappedCreateValidator` and create/add BLS key if needed - Removed commands: - `babylond gen-helpers create-bls` - `babylond gen-helpers add-bls` - Modified `x/checkpointing` msg server to call the `x/staking` msg server on receiving `MsgWrappedCreateValidator` if the context block height is zero (genutil) calls the handler It partially helps to remove the `x/staking` msg server from the router
Co-authored-by: Runchao Han <[email protected]> Co-authored-by: Mauro Lacy <[email protected]> Co-authored-by: Mauro Lacy <[email protected]> Co-authored-by: Gurjot Singh <[email protected]> Co-authored-by: hiepmai-babylonchain <[email protected]> Co-authored-by: lesterli <[email protected]> Co-authored-by: Cirrus Gai <[email protected]> Co-authored-by: Runchao Han <[email protected]> Co-authored-by: Mauro Lacy <[email protected]> Co-authored-by: Filippos Malandrakis <[email protected]> Co-authored-by: Lazar <[email protected]> Co-authored-by: KonradStaniec <[email protected]>
.github/workflows/ci.yml
Outdated
if: false | ||
needs: [e2e-docker-build-babylon, e2e-docker-build-e2e-init-chain] | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Download babylon artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: babylond-${{ github.sha }} | ||
path: /tmp | ||
- name: Download init-chain artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: init-chain | ||
path: /tmp | ||
- name: Docker load babylond | ||
run: | | ||
docker load < /tmp/docker-babylond.tar.gz | ||
|
||
- name: Docker load init chain | ||
run: | | ||
docker load < /tmp/docker-init-chain.tar.gz | ||
|
||
- name: Cache Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.23 | ||
- name: Run e2e TestSoftwareUpgradeV1TestnetTestSuite | ||
run: | | ||
sudo make test-e2e-cache-upgrade-v1 | ||
- name: Dump docker logs on failure | ||
if: failure() | ||
uses: jwalton/gh-docker-logs@v2 | ||
uses: jwalton/gh-docker-logs@v2 |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm how to get rid of these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure why it pop it up on this PR
.github/workflows/ci.yml
Outdated
sudo make test-e2e-cache-upgrade-v1 | ||
- name: Dump docker logs on failure | ||
if: failure() | ||
uses: jwalton/gh-docker-logs@v2 | ||
uses: jwalton/gh-docker-logs@v2 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium
Uses Step
- Removed `x/staking` msgs from router - Add msg server from `x/staking` to epoch keeper to call the necessary functions directly instead of from the router - Add `MsgWrappedEditValidator` and `MsgWrappedStakingUpdateParams` to epoching txs so all the msgs from staking can be called even with the router removed - Removed `x/staking` tx subcommand --------- Co-authored-by: Runchao Han <[email protected]> Co-authored-by: Mauro Lacy <[email protected]> Co-authored-by: Mauro Lacy <[email protected]> Co-authored-by: Gurjot Singh <[email protected]> Co-authored-by: hiepmai-babylonchain <[email protected]> Co-authored-by: lesterli <[email protected]> Co-authored-by: Cirrus Gai <[email protected]> Co-authored-by: Runchao Han <[email protected]> Co-authored-by: Mauro Lacy <[email protected]> Co-authored-by: Filippos Malandrakis <[email protected]> Co-authored-by: Lazar <[email protected]> Co-authored-by: KonradStaniec <[email protected]>
Co-authored-by: Runchao Han <[email protected]> Co-authored-by: Mauro Lacy <[email protected]> Co-authored-by: Mauro Lacy <[email protected]> Co-authored-by: Gurjot Singh <[email protected]> Co-authored-by: hiepmai-babylonchain <[email protected]> Co-authored-by: lesterli <[email protected]> Co-authored-by: Cirrus Gai <[email protected]> Co-authored-by: Runchao Han <[email protected]> Co-authored-by: Mauro Lacy <[email protected]> Co-authored-by: Filippos Malandrakis <[email protected]> Co-authored-by: Lazar <[email protected]> Co-authored-by: KonradStaniec <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! great job driving it forward ! Lets wait also for @SebastianElvis approval on this one
- Backports #457 feature branch to v1 --------- Co-authored-by: Runchao Han <[email protected]> Co-authored-by: Mauro Lacy <[email protected]> Co-authored-by: Mauro Lacy <[email protected]> Co-authored-by: Gurjot Singh <[email protected]> Co-authored-by: hiepmai-babylonchain <[email protected]> Co-authored-by: lesterli <[email protected]> Co-authored-by: Cirrus Gai <[email protected]> Co-authored-by: Runchao Han <[email protected]> Co-authored-by: Mauro Lacy <[email protected]> Co-authored-by: Filippos Malandrakis <[email protected]> Co-authored-by: Lazar <[email protected]> Co-authored-by: KonradStaniec <[email protected]>
PRs