-
Notifications
You must be signed in to change notification settings - Fork 16
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: Bridge module and upgrade sdk50 #179
Conversation
feat: bridge module
valIter := app.StakingKeeper.ValidatorQueueIterator(ctx, oneEnternityLater, 99999999999999) | ||
valIter, err := app.StakingKeeper.ValidatorQueueIterator(ctx, oneEnternityLater, 99999999999999) | ||
if err != nil { | ||
panic(err) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning
unbondingTimesliceIterator := sk.UBDQueueIterator(ctx, oneEnternityLater) // make sure to iterate all queue | ||
unbondingTimesliceIterator, err := sk.UBDQueueIterator(ctx, oneEnternityLater) // make sure to iterate all queue | ||
if err != nil { | ||
panic(err) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning
@trinitys7 @catShaark do we need to write a migrate function for converting |
No we don't, I tested them on mainnet state upgrade |
// Ethereum keys | ||
meter.ConsumeGas(evmosante.Secp256k1VerifyCost, "ante verify: eth_secp256k1") | ||
return nil | ||
case *ethsecp256k1.PubKey: |
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.
Why is this needed?
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.
For backward compability with acount that has ethermint key.
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.
The ethsecp256k1 Pubkey is the pubkey for ethermint one, while the osecp256k1 Pubkey is the pubkey for evmos os, as we move from ethermint to os, the ethermint key will still be store in local keyring.
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.
you are right, I can ask the evmos team if they can support the ethermint type so we dont have to support mulutiple types
PR should be block until fixing the ante handler issues. I stopped the review there giving that that change should have significant changes in multiple files. Once it is fixed I will continue the review. |
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
No description provided.