-
Notifications
You must be signed in to change notification settings - Fork 204
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
added function to unregister host zone #1166
Conversation
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.
This looks good to me, although how is this function meant to be called on testnet? Is it through governance?
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
Do we want to add this behind an admin gated tx?
Should we do similar ones for staketia and stakedym which have different fields and record types?
Just through the upgrade handler! Considering it's unlikely to be used outside of the testnet, I don't think we should make a tx for it |
That's perfect @sampocs! Just want to make sure there's no worry of this accidentally being called where it shouldn't be. I'm signed off on this! |
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.
Approved based on comments!
Context
Added helper function (not exposed via txs) to unregister a host zone. This will be used only on our testnet
Brief Changelog
Testing
To test, I added a condition to the register host zone function (for testing purposes only) that would un-register the host zone if the function was ran with a host that already exists. Then I tested with the following:
build/strided --home dockernet/state/stride1 tx stakeibc register-host-zone \ connection-0 uatom cosmos \ ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2 \ channel-0 1 true \ --from admin -y --gas 4000000
build/strided --home dockernet/state/stride1 tx stakeibc register-host-zone \ connection-1 uatom cosmos \ ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2 \ channel-1 1 true \ --from admin -y --gas 4000000