proposals

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2020 License: GPL-3.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProposeDetector

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

ProposeDetector defines a struct which can detect slashable block proposals.

func NewProposeDetector

func NewProposeDetector(db db.Database) *ProposeDetector

NewProposeDetector creates a new instance of a struct.

func (*ProposeDetector) DetectDoublePropose

func (dd *ProposeDetector) DetectDoublePropose(
	ctx context.Context,
	incomingBlk *ethpb.SignedBeaconBlockHeader,
) (*ethpb.ProposerSlashing, error)

DetectDoublePropose detects double proposals given a block by looking in the db.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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