-
Notifications
You must be signed in to change notification settings - Fork 0
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
On-chain upgrade to consumer chain #1
base: main
Are you sure you want to change the base?
Changes from all commits
40f3fdd
aa566c9
dc9768d
473e467
c6803f1
15265ad
2806d6f
c3ae9a4
67aa39b
09f7b61
d7b5a7f
8aea5bf
62da0d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -334,6 +334,7 @@ func New( | |
&app.IBCKeeper.PortKeeper, | ||
app.IBCKeeper.ConnectionKeeper, | ||
app.IBCKeeper.ClientKeeper, | ||
nil, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we pass in staking keeper here in case we'd ever want to test this upgrade with a normal consumer? Maybe I just need more clarity on how this PR affects (or shouldn't affect) the normal consumer, and the democracy consumer There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Staking keeper will only be used for democracy one, but could pass consumer keeper here since consumer keeper implement the interface of staking keeper. On consumer app, there's no staking keeper FYI. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason for not passing anything here is to show that it's not democracy app There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For all the uses of stakingKeeper, it has checker for |
||
app.SlashingKeeper, | ||
app.BankKeeper, | ||
app.AccountKeeper, | ||
|
@@ -344,7 +345,7 @@ func New( | |
|
||
// register slashing module Slashing hooks to the consumer keeper | ||
app.ConsumerKeeper = *app.ConsumerKeeper.SetHooks(app.SlashingKeeper.Hooks()) | ||
consumerModule := ibcconsumer.NewAppModule(app.ConsumerKeeper) | ||
consumerModule := ibcconsumer.NewAppModule(app.ConsumerKeeper, nil) | ||
|
||
app.TransferKeeper = ibctransferkeeper.NewKeeper( | ||
appCodec, | ||
|
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.
How does this call to the consumer keeper's
InitGenesis
interact with the existing system for calling every keeper'sInitGenesis
? SeeInitChainer
in this file, and the sdk module manager'sInitGenesis
methodThere 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.
InitGenesis is only called when it's doing hard fork or launching a new chain, on soft fork, to init, it should be on upgrade handler I believe.