headerfraud

package
v0.18.0-rc36 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFraudExtHeader

func CreateFraudExtHeader(
	t *testing.T,
	eh *header.ExtendedHeader,
) *header.ExtendedHeader

Types

type FraudMaker

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

FraudMaker allows to produce an invalid header at the specified height in order to produce the BEFP.

func NewFraudMaker

func NewFraudMaker(t *testing.T, height int64, vals []types.PrivValidator, valSet *types.ValidatorSet) *FraudMaker

func (*FraudMaker) MakeExtendedHeader

func (f *FraudMaker) MakeExtendedHeader(odsSize int, edsStore *store.Store) header.ConstructFn

Jump to

Keyboard shortcuts

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