Documentation ¶
Index ¶
- Constants
- Variables
- func GetValidatorMissedBlocks(ctx context.Context, cdc codec.BinaryCodec, store storetypes.KVStore, ...) []types.MissedBlock
- func Migrate(ctx context.Context, cdc codec.BinaryCodec, store storetypes.KVStore, ...) error
- func ValidatorMissedBlockBitArrayKey(v sdk.ConsAddress, i int64) []byte
- func ValidatorMissedBlockBitmapKey(v sdk.ConsAddress, chunkIndex int64) []byte
- func ValidatorSigningInfoAddress(key []byte) (v sdk.ConsAddress)
- func ValidatorSigningInfoKey(v sdk.ConsAddress) []byte
Constants ¶
View Source
const MissedBlockBitmapChunkSize = 1024 // 2^10 bits
Variables ¶
View Source
var (
ValidatorSigningInfoKeyPrefix = []byte{0x01}
)
Functions ¶
func GetValidatorMissedBlocks ¶
func GetValidatorMissedBlocks( ctx context.Context, cdc codec.BinaryCodec, store storetypes.KVStore, addr sdk.ConsAddress, params types.Params, ) []types.MissedBlock
func Migrate ¶
func Migrate(ctx context.Context, cdc codec.BinaryCodec, store storetypes.KVStore, params types.Params, addressCodec address.ValidatorAddressCodec) error
Migrate migrates state to consensus version 4. Specifically, the migration deletes all existing validator bitmap entries and replaces them with a real "chunked" bitmap.
func ValidatorMissedBlockBitArrayKey ¶
func ValidatorMissedBlockBitArrayKey(v sdk.ConsAddress, i int64) []byte
func ValidatorMissedBlockBitmapKey ¶
func ValidatorMissedBlockBitmapKey(v sdk.ConsAddress, chunkIndex int64) []byte
func ValidatorSigningInfoAddress ¶
func ValidatorSigningInfoAddress(key []byte) (v sdk.ConsAddress)
func ValidatorSigningInfoKey ¶
func ValidatorSigningInfoKey(v sdk.ConsAddress) []byte
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.