mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-29 17:55:19 +00:00
17 lines
268 B
Markdown
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)
|
||
|
}
|
||
|
}
|
||
|
```
|