types

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: GPL-3.0 Imports: 0 Imported by: 23

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 (s SlashingStatus) String() string

type SlashingType

type SlashingType uint8

SlashingType enum like type of slashing proof.

func (SlashingType) String

func (t SlashingType) String() string

String returns the string representation of the status SlashingType.

Jump to

Keyboard shortcuts

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