Versions in this module Expand all Collapse all v0 v0.23.1 Jul 27, 2018 Changes in this version + const MsgType + var DoubleSignUnbondDuration int64 = 60 * 5 + var DowntimeUnbondDuration int64 = 60 * 5 + var MaxEvidenceAge int64 = 60 * 2 + var MinSignedPerWindow = SignedBlocksWindow / 2 + var SignedBlocksWindow int64 = 10000 + var SlashFractionDoubleSign = sdk.NewRat(1).Quo(sdk.NewRat(20)) + var SlashFractionDowntime = sdk.NewRat(10).Quo(sdk.NewRat(100)) + func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock, sk Keeper) (tags sdk.Tags) + func ErrBadValidatorAddr(codespace sdk.CodespaceType) sdk.Error + func ErrNoValidatorForAddress(codespace sdk.CodespaceType) sdk.Error + func ErrValidatorJailed(codespace sdk.CodespaceType) sdk.Error + func ErrValidatorNotRevoked(codespace sdk.CodespaceType) sdk.Error + func GetValidatorSigningBitArrayKey(v sdk.ValAddress, i int64) []byte + func GetValidatorSigningInfoKey(v sdk.ValAddress) []byte + func NewHandler(k Keeper) sdk.Handler + func RegisterWire(cdc *wire.Codec) + type CodeType = sdk.CodeType + const CodeInvalidValidator + const CodeValidatorJailed + const CodeValidatorNotRevoked + const DefaultCodespace + type Keeper struct + func NewKeeper(cdc *wire.Codec, key sdk.StoreKey, vs sdk.ValidatorSet, ...) Keeper + type MsgUnrevoke struct + ValidatorAddr sdk.AccAddress + func NewMsgUnrevoke(validatorAddr sdk.AccAddress) MsgUnrevoke + func (msg MsgUnrevoke) GetSignBytes() []byte + func (msg MsgUnrevoke) GetSigners() []sdk.AccAddress + func (msg MsgUnrevoke) Type() string + func (msg MsgUnrevoke) ValidateBasic() sdk.Error + type ValidatorSigningInfo struct + IndexOffset int64 + JailedUntil int64 + SignedBlocksCounter int64 + StartHeight int64 + func NewValidatorSigningInfo(startHeight int64, indexOffset int64, jailedUntil int64, ...) ValidatorSigningInfo + func (i ValidatorSigningInfo) HumanReadableString() string