mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 16:55:21 +00:00
2d7f5c4080
* update sidebar order * update event backticks * fix broken links * fix spelling
17 lines
299 B
Markdown
17 lines
299 B
Markdown
<!--
|
|
order: 6
|
|
-->
|
|
|
|
# Begin Block
|
|
|
|
At the start of each block, the inflationary coins for the ongoing period, if any, are minted. The logic is as follows:
|
|
|
|
```go
|
|
func BeginBlocker(ctx sdk.Context, k Keeper) {
|
|
err := k.MintPeriodInflation(ctx)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
```
|