wintermute

package
v0.25.14-cadence-v0.23... Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: AGPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Orchestrator

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

Orchestrator encapsulates a stateful implementation of wintermute attack orchestrator logic.

func NewOrchestrator

func NewOrchestrator(allIds flow.IdentityList, corruptedIds flow.IdentityList, logger zerolog.Logger) *Orchestrator

func (*Orchestrator) HandleEventFromCorruptedNode

func (o *Orchestrator) HandleEventFromCorruptedNode(event *insecure.Event) error

HandleEventFromCorruptedNode implements logic of processing the events received from a corrupted node.

In Corruptible Conduit Framework for BFT testing, corrupted nodes relay their outgoing events to the attacker instead of dispatching them to the network.

func (*Orchestrator) WithAttackNetwork added in v0.25.2

func (o *Orchestrator) WithAttackNetwork(network insecure.AttackNetwork)

Jump to

Keyboard shortcuts

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