docs: update upgrade doc and changelog for MigrationModuleManager (#17373)

Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
mmsqe
2023-08-13 13:09:51 +00:00
committed by GitHub
co-authored by Julien Robert
parent 6855d0f922
commit df7cc3ee67
3 changed files with 23 additions and 2 deletions
+12
View File
@@ -50,6 +50,18 @@ the rest of the block as normal. Once 2/3 of the voting power has upgraded, the
resume the consensus mechanism. If the majority of operators add a custom `do-upgrade` script, this should
be a matter of minutes and not even require them to be awake at that time.
## Set Migration Module Manager
:::tip
Users using `depinject` / app v2 do not need any changes, this is abstracted for them.
:::
After app initiation, call `SetMigrationModuleManager` with ModuleManager to give BaseApp access to `RunMigrationBeginBlock`:
```go
app.BaseApp.SetMigrationModuleManager(app.ModuleManager)
```
## Integrating With An App
Setup an upgrade Keeper for the app and then define a `BeginBlocker` that calls the upgrade