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

Test staking module wrapper and ABCI++ batch signing #515

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hacheigriega
Copy link
Member

@hacheigriega hacheigriega commented Mar 3, 2025

Adding tests for important components that were missing comprehensive testing.

  • Staking module wrapper
    • Testing basic custom functionality
    • Ensuring that wrapping overrides default SDK create-validator handler
  • ABCI++ batch signing
    • Testing the whole flow without mocking the core validation function

@hacheigriega hacheigriega requested a review from a team March 3, 2025 18:58
Copy link
Member

@Thomasvdam Thomasvdam left a comment

Choose a reason for hiding this comment

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

image

@@ -32,6 +32,7 @@ require (
github.com/cosmos/ibc-go/v8 v8.4.0
github.com/cosmos/rosetta v0.0.0-00010101000000-000000000000
github.com/ethereum/go-ethereum v1.14.13
github.com/golang/mock v1.6.0
Copy link
Member

Choose a reason for hiding this comment

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

Should we not be using the gomock fork maintained by Uber?

Update, June 2023: This repo and tool are no longer maintained. Please see go.uber.org/mock for a maintained fork instead.

Copy link
Member Author

Choose a reason for hiding this comment

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

I had to add this to control SDK's mocks :/

mockBatchNumber: 100,
isNewValidator: []bool{false, false, true},
},
// TODO Reactivate
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can make a note in an issue or in the PR for this so we don't forget?

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