mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 08:37:29 +00:00 
			
		
		
		
	* wip: issuance module * add keeper and module methods * add begin blocker * add client * update events * add simulations * ignore v0.8 migration tests for now * ignore migration tests in ci * add test suite * update spec to match implementation details * add unblock method * address review comments * fix typos
		
			
				
	
	
		
			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)
 | 
						|
    }
 | 
						|
  }
 | 
						|
```
 |