testkit

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlockPersistence

func NewBlockPersistence(parent log.Logger, preloadedBlocks []*protocol.BlockPairContainer, metricFactory metric.Factory) *tamperingBlockPersistence

Types

type TamperingInMemoryBlockPersistence

type TamperingInMemoryBlockPersistence interface {
	adapter.BlockPersistence
	ResetTampering()
	TamperWithBlockWrites(maybeWriteFailedBlocks chan<- *protocol.BlockPairContainer)
	WaitForTransaction(ctx context.Context, txHash primitives.Sha256) primitives.BlockHeight
}

Jump to

Keyboard shortcuts

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