slashing

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DelegateJailed

type DelegateJailed struct {
	Address     meter.Address `json:"address"`
	Name        string        `json:"name"`
	PubKey      string        `json:"pubKey"`
	TotalPoints uint64        `json:"totalPoints"`
	BailAmount  string        `json:"bailAmount"`
	JailedTime  uint64        `json:"jailedTime"`
}

type DelegateStatistics

type DelegateStatistics struct {
	Address     meter.Address `json:"address"`
	Name        string        `json:"name"`
	PubKey      string        `json:"pubKey"`
	TotalPoints uint64        `json:"totalPoints"`
	Infractions Infraction    `json:"infractions"`
}

type DoubleSigner

type DoubleSigner struct {
	Counter uint32              `json:"counter"`
	Info    []*DoubleSignerInfo `json:"info"`
}

type DoubleSignerInfo

type DoubleSignerInfo struct {
	Epoch  uint32 `json:"epoch"`
	Round  uint32 `json:"round"`
	Height uint32 `json:"height"`
}

DoubleSigner

type Infraction

type Infraction struct {
	MissingLeader   MissingLeader   `json:"missingLeader"`
	MissingProposer MissingProposer `json:"missingProposer"`
	MissingVoter    MissingVoter    `json:"missingVoter"`
	DoubleSigner    DoubleSigner    `json:"doubleSigner`
}

type MissingLeader

type MissingLeader struct {
	Counter uint32               `json:"counter"`
	Info    []*MissingLeaderInfo `json:"info"`
}

type MissingLeaderInfo

type MissingLeaderInfo struct {
	Epoch uint32 `json:"epoch"`
	Round uint32 `json:"round"`
}

MissingLeader

type MissingProposer

type MissingProposer struct {
	Counter uint32                 `json:"counter"`
	Info    []*MissingProposerInfo `json:"info"`
}

type MissingProposerInfo

type MissingProposerInfo struct {
	Epoch  uint32 `json:"epoch"`
	Height uint32 `json:"height"`
}

MissingProposer

type MissingVoter

type MissingVoter struct {
	Counter uint32              `json:"counter"`
	Info    []*MissingVoterInfo `json:"info"`
}

type MissingVoterInfo

type MissingVoterInfo struct {
	Epoch  uint32 `json:"epoch"`
	Height uint32 `json:"height"`
}

MissingVoter

type Slashing

type Slashing struct {
}

func New

func New() *Slashing

func (*Slashing) Mount

func (sl *Slashing) Mount(root *mux.Router, pathPrefix string)

Jump to

Keyboard shortcuts

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