v4

package
v0.2.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 12 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 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.

Jump to

Keyboard shortcuts

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