Documentation ¶
Overview ¶
Package consim implements the mock consensus simulator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Workload ¶
type Workload interface { // Init initializes the workload (and alters the genesis document as required). Init(*genesis.Document) error // Start starts the workload. // // Note: The genesis document is the initial chain state, after the fixups // from Init are applied, and existing state is loaded from disk. Start(*genesis.Document, <-chan struct{}, chan<- error) (<-chan []BlockTx, error) // Finalize is called after the workload is complete with the final chain state. Finalize(*genesis.Document) error // Cleanup cleans up the workload. Cleanup() }
Workload is a simulator workload.
Click to show internal directories.
Click to hide internal directories.