0g-chain/x/committee/abci.go
2020-03-04 19:16:27 +00:00

13 lines
429 B
Go

package committee
func BeginBlocker() {
// TODO much the same as the current gov endblocker does
// Get all active proposals
// If voting periods are over, tally up the results
// If a proposal passes run it through the correct handler
// Handler need to be registered in app.go as they are for the current gov module
handler := keeper.Router().GetRoute(proposal.ProposalRoute())
err := handler(ctx, proposal.Content)
}