monitor

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxCacheHeader = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DoubleSignMonitor

type DoubleSignMonitor struct {
	// contains filtered or unexported fields
}

func NewDoubleSignMonitor

func NewDoubleSignMonitor() *DoubleSignMonitor

func (*DoubleSignMonitor) Verify

func (m *DoubleSignMonitor) Verify(h *types.Header)

type MaliciousVoteMonitor

type MaliciousVoteMonitor struct {
	// contains filtered or unexported fields
}

two purposes 1. monitor whether there are bugs in the voting mechanism, so add metrics to observe it. 2. do malicious vote slashing. TODO

func NewMaliciousVoteMonitor

func NewMaliciousVoteMonitor() *MaliciousVoteMonitor

func (*MaliciousVoteMonitor) ConflictDetect

func (m *MaliciousVoteMonitor) ConflictDetect(newVote *types.VoteEnvelope, pendingBlockNumber uint64) bool

Jump to

Keyboard shortcuts

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