mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
13 lines
429 B
Go
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)
|
|
}
|