Documentation ¶
Index ¶
- Variables
- func GetBlock(rs randsrc.RandSrc, h int64, cfg FuzzConfig) (blk *types.Block)
- func GetLog(rs randsrc.RandSrc) (log types.Log)
- func GetTx(rs randsrc.RandSrc, height int64, idx int, cfg FuzzConfig) (tx types.Tx)
- func PrintBlocks(blkList []*types.Block)
- func Query(db types.DB, useAddr bool, log types.Log, startHeight, endHeight uint32) map[string]struct{}
- func QueryTxByDst(db types.DB, addr [20]byte, startHeight, endHeight uint32) map[string]struct{}
- func QueryTxBySrc(db types.DB, addr [20]byte, startHeight, endHeight uint32) map[string]struct{}
- func QueryTxBySrcOrDst(db types.DB, addr [20]byte, startHeight, endHeight uint32) map[string]struct{}
- func RunFuzz(rs randsrc.RandSrc, cfg FuzzConfig)
- type FuzzConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var AddressList [][20]byte
View Source
var Config2 = FuzzConfig{
TotalAddressCount: 15,
TotalTopicCount: 30,
TotalBlocks: 15,
MaxLogInTx: 15,
MaxTxInBlock: 15,
QueryCount: 30,
SrcQueryCount: 5,
DstQueryCount: 5,
SrcDstQueryCount: 5,
ReplayLastEveryN: 5,
}
View Source
var DefaultConfig = FuzzConfig{
TotalAddressCount: 100,
TotalTopicCount: 200,
TotalBlocks: 8,
MaxLogInTx: 5,
MaxTxInBlock: 5,
QueryCount: 20,
SrcQueryCount: 3,
DstQueryCount: 3,
SrcDstQueryCount: 3,
ReplayLastEveryN: 3,
}
View Source
var TopicList [][32]byte
Functions ¶
func PrintBlocks ¶
func QueryTxByDst ¶
func QueryTxBySrc ¶
func QueryTxBySrcOrDst ¶
func RunFuzz ¶
func RunFuzz(rs randsrc.RandSrc, cfg FuzzConfig)
Types ¶
Click to show internal directories.
Click to hide internal directories.