leaderelection

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateBlocksWithProofsForTest added in v0.2.0

func GenerateBlocksWithProofsForTest(blocks []interfaces.Block, nodes []*network.Node) (*mocks.InMemoryBlockchain, error)

func Net added in v0.2.0

func Net(h *harness) *network.TestNetwork

This might not be a good idea but it is needed outside this package

func NewStartedHarness added in v0.2.0

func NewStartedHarness(ctx context.Context, t *testing.T, logsToConsole bool, blocksPool ...interfaces.Block) *harness

func NewStartedHarnessDontPauseOnRequestNewBlock added in v0.2.0

func NewStartedHarnessDontPauseOnRequestNewBlock(ctx context.Context, t *testing.T, logsToConsole bool, blocksPool ...interfaces.Block) *harness

func NewStartedHarnessWithFailingBlockProposalValidations added in v0.2.0

func NewStartedHarnessWithFailingBlockProposalValidations(ctx context.Context, t *testing.T, logsToConsole bool) *harness

Types

This section is empty.

Jump to

Keyboard shortcuts

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