v4

package
v0.50.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MissedBlockBitmapChunkSize = 1024 // 2^10 bits

Variables

View Source
var (
	ValidatorSigningInfoKeyPrefix = []byte{0x01}
)

Functions

func GetValidatorMissedBlocks

func GetValidatorMissedBlocks(
	ctx sdk.Context,
	cdc codec.BinaryCodec,
	store storetypes.KVStore,
	addr sdk.ConsAddress,
	params types.Params,
) []types.MissedBlock

func Migrate

func Migrate(ctx sdk.Context, cdc codec.BinaryCodec, store storetypes.KVStore, params types.Params) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL