mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 18:15:19 +00:00
13 lines
280 B
Markdown
13 lines
280 B
Markdown
|
# 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)
|
||
|
}
|
||
|
}
|
||
|
```
|