Skip to content

Commit

Permalink
Added custom querier in Gaia App
Browse files Browse the repository at this point in the history
  • Loading branch information
ironman0x7b2 committed Feb 28, 2019
1 parent 2899ff9 commit 9f383c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/gaia/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ func NewGaiaApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest b
AddRoute(gov.RouterKey, gov.NewHandler(app.govKeeper))

app.QueryRouter().
AddRoute(auth.QuerierRoute, auth.NewQuerier(app.accountKeeper)).
AddRoute(distr.QuerierRoute, distr.NewQuerier(app.distrKeeper)).
AddRoute(gov.QuerierRoute, gov.NewQuerier(app.govKeeper)).
AddRoute(slashing.QuerierRoute, slashing.NewQuerier(app.slashingKeeper, app.cdc)).
Expand Down Expand Up @@ -324,7 +325,7 @@ func (app *GaiaApp) LoadHeight(height int64) error {
return app.LoadVersion(height, app.keyMain)
}

//______________________________________________________________________________________________
// ______________________________________________________________________________________________

var _ sdk.StakingHooks = StakingHooks{}

Expand Down

0 comments on commit 9f383c0

Please sign in to comment.