fuzz

package
v0.0.0-...-19f5321 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PruneRatio = 0.5
)

Variables

View Source
var DefaultConfig = FuzzConfig{
	EndBlockStripe:         1000,
	ConsistencyEveryNBlock: 20,
	ReloadEveryNBlock:      309,
	RecoverEveryNBlock:     606,
	PruneEveryNBlock:       20,
	MaxKVLen:               20,
	DeactiveStripe:         3,
	DeactiveCount:          4,
	MassDeactiveStripe:     6000,
	ProofCount:             4,
	MaxActiveCount:         1 * 1024 * 1024,
	MagicBytesInKey:        1000,
	MagicBytesInValue:      2000,
	PruneToOldestMaxDist:   15,
}

Functions

This section is empty.

Types

type Context

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

func NewContext

func NewContext(cfg FuzzConfig, rs randsrc.RandSrc) *Context

type FuzzConfig

type FuzzConfig struct {
	EndBlockStripe         uint32 // run EndBlock every n steps
	ConsistencyEveryNBlock uint32 // check consistency every n blocks
	ReloadEveryNBlock      uint32 // reload tree from disk every n blocks
	RecoverEveryNBlock     uint32 // recover tree from disk every n blocks
	PruneEveryNBlock       uint32 // prune the tree every n blocks
	MaxKVLen               uint32 // max length of key and value
	DeactiveStripe         uint32 // deactive some entry every n steps
	DeactiveCount          uint32 // number of deactive try times
	MassDeactiveStripe     uint32 // deactive many entries every n steps
	ProofCount             uint32 // check several proofs at endblock
	MaxActiveCount         uint32 // the maximum count of active entries
	MagicBytesInKey        uint32 // chance that keys have magicbytes
	MagicBytesInValue      uint32 // chance that value have magicbytes
	PruneToOldestMaxDist   uint32 // the maximum possible value of oldestActiveTwigID-lastPrunedTwigID
}

Jump to

Keyboard shortcuts

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