github.com/cosmos/cosmos-sdk@v0.50.10/x/staking/migrations/v2/keys.go (about) 1 package v2 2 3 import "strconv" 4 5 const ( 6 // ModuleName is the name of the module 7 ModuleName = "staking" 8 ) 9 10 var HistoricalInfoKey = []byte{0x50} // prefix for the historical info 11 12 // GetHistoricalInfoKey returns a key prefix for indexing HistoricalInfo objects. 13 func GetHistoricalInfoKey(height int64) []byte { 14 return append(HistoricalInfoKey, []byte(strconv.FormatInt(height, 10))...) 15 }