Documentation ¶
Overview ¶
Package types includes important database-related types for slasher-specific logic.
Index ¶
Constants ¶
View Source
const ( // Unknown default status in case it is not set Unknown = iota // Active slashing proof hasn't been included yet. Active // Included slashing proof that has been included in a block. Included // Reverted slashing proof that has been reverted and therefore is relevant again. Reverted //relevant again )
noinspection GoUnusedConst
View Source
const ( // UseCache is used to mark when calling a DB function, to save it to the cache. UseCache = true // UseDB is used to mark when calling a DB function, to save it to the DB. UseDB = false )
View Source
const ( // Proposal enum value. Proposal = iota // Attestation enum value. Attestation )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlashingStatus ¶
type SlashingStatus uint8
SlashingStatus enum like structure.
func (SlashingStatus) String ¶
func (status SlashingStatus) String() string
type SlashingType ¶
type SlashingType uint8
SlashingType enum like type of slashing proof.
func (SlashingType) String ¶
func (status SlashingType) String() string
String returns the string representation of the status SlashingType.
Click to show internal directories.
Click to hide internal directories.