0g-chain/x/issuance/spec/06_begin_block.md
2024-04-25 15:31:20 +08:00

17 lines
268 B
Markdown

<!--
order: 6
-->
# Begin Block
At the start of each block, coins held by blocked addresses are redeemed
```go
func BeginBlocker(ctx sdk.Context, k Keeper) {
err := k.RedeemTokensFromBlockedAddresses(ctx, k)
if err != nil {
panic(err)
}
}
```