0g-chain/x/committee/spec/06_begin_block.md
Denali Marsh 2d7f5c4080
[R4R] Better docs (#541)
* update sidebar order

* update event backticks

* fix broken links

* fix spelling
2020-06-03 14:54:31 -04:00

285 B

Begin Block

At the start of each block, expired proposals are deleted. The logic is as follows:

// BeginBlocker runs at the start of every block.
func BeginBlocker(ctx sdk.Context, _ abci.RequestBeginBlock, k Keeper) {
  k.CloseExpiredProposals(ctx)
}