testkit

package
v1.3.15 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const WaitForTransactionInterval = 5 * time.Millisecond

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