0g-chain/x/issuance/spec/06_begin_block.md

17 lines
268 B
Markdown
Raw Normal View History

2024-04-25 07:31:20 +00:00
<!--
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)
}
}
```