github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/infura/beginblocker.go (about)

     1  package infura
     2  
     3  import (
     4  	sdk "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/types"
     5  )
     6  
     7  // BeginBlocker runs the logic of BeginBlocker with version 0.
     8  // BeginBlocker resets keeper cache.
     9  func BeginBlocker(ctx sdk.Context, k Keeper) {
    10  	if !k.stream.enable {
    11  		return
    12  	}
    13  	k.stream.cache.Reset()
    14  }