Versions in this module Expand all Collapse all v0 v0.3.0 Aug 6, 2026 Changes in this version + func CreateNetworkLogger(t *testing.T, config *FuzzConfig) *testutil.TestLogger + func CreateNodeLogger(t *testing.T, config *FuzzConfig, nodeID common.NodeID) *testutil.TestLogger + func NewProtocolMetadata(round, seq uint64, prev common.Digest) common.ProtocolMetadata + type Block struct + func NewBlock(metadata common.ProtocolMetadata, blacklist common.Blacklist, mempool *Mempool, ...) *Block + func (b *Block) Blacklist() common.Blacklist + func (b *Block) BlockHeader() common.BlockHeader + func (b *Block) Bytes() []byte + func (b *Block) ComputeAndSetDigest() + func (b *Block) SealingBlockInfo() *common.SealingBlockInfo + func (b *Block) Size() int + func (b *Block) Verify(ctx context.Context) (common.VerifiedBlock, error) + type BlockDeserializer struct + func (bd *BlockDeserializer) DeserializeBlock(ctx context.Context, buff []byte) (common.Block, error) + type FuzzConfig struct + AdvanceTimeTickAmount time.Duration + LogDirectory string + MaxNodes int + MaxTxsPerIssue int + MinNodes int + MinTxsPerIssue int + NodeCrashProbability float64 + NodeRecoverProbability float64 + NumFinalizedBlocks int + RandomSeed int64 + TxsPerBlock int + func DefaultFuzzConfig() *FuzzConfig + type Mempool struct + func NewMempool(l common.Logger, config *FuzzConfig) *Mempool + func (m *Mempool) AcceptBlock(b *Block) + func (m *Mempool) AddPendingTXs(txs ...*TX) + func (m *Mempool) BuildBlock(ctx context.Context, md common.ProtocolMetadata, bl common.Blacklist) (common.VerifiedBlock, bool) + func (m *Mempool) Clear() + func (m *Mempool) IsTxAccepted(txID txID) bool + func (m *Mempool) IsTxPending(txID txID) bool + func (m *Mempool) NotifyTxsReady() + func (m *Mempool) VerifyBlock(ctx context.Context, b *Block) error + func (m *Mempool) WaitForPendingBlock(ctx context.Context) + type Network struct + func NewNetwork(config *FuzzConfig, t *testing.T) *Network + func (n *Network) PrintStatus() + func (n *Network) Run() + func (n *Network) SetInfoLog() + func (n *Network) StartInstances() + type Node struct + func NewNode(t *testing.T, nodeID common.NodeID, net *testutil.BasicInMemoryNetwork, ...) *Node + func (n *Node) HandleMessage(msg *common.Message, from common.NodeID) error + type Storage struct + func NewStorage(mempool *Mempool) *Storage + func (s *Storage) Clone() *Storage + func (s *Storage) Index(ctx context.Context, block common.VerifiedBlock, ...) error + type TX struct + ID txID + func CreateNewTX() *TX + func TxFromBytes(b []byte) (*TX, error) + func (t *TX) Bytes() ([]byte, error) + func (t *TX) SetShouldFailVerification() + func (t *TX) String() string + func (t *TX) Verify(ctx context.Context) error