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

     1  package staking
     2  
     3  import (
     4  	sdk "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/types"
     5  	"github.com/fibonacci-chain/fbc/libs/tendermint/types"
     6  )
     7  
     8  // BeginBlocker will persist the current header and validator set as a historical entry
     9  // and prune the oldest entry based on the HistoricalEntries parameter
    10  func BeginBlocker(ctx sdk.Context, k Keeper) {
    11  	if types.HigherThanVenus1(ctx.BlockHeight()) {
    12  		k.TrackHistoricalInfo(ctx)
    13  	}
    14  }