acceptance

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_ACCEPTANCE_MAX_TX_PER_BLOCK = 10
View Source
const DEFAULT_ACCEPTANCE_REQUIRED_QUORUM_PERCENTAGE = 66
View Source
const DEFAULT_ACCEPTANCE_VIRTUAL_CHAIN_ID = 42
View Source
const DEFAULT_NODE_COUNT_FOR_ACCEPTANCE = 7
View Source
const ENABLE_LEAN_HELIX_IN_ACCEPTANCE_TESTS = true
View Source
const TEST_TIMEOUT_HARD_LIMIT = 20 * time.Second //TODO(v1) 10 seconds is infinity; reduce to 2 seconds when system is more stable (after we add feature of custom config per test)

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkHarness

type NetworkHarness struct {
	inmemory.Network
	// contains filtered or unexported fields
}

func (*NetworkHarness) BlockPersistence

func (*NetworkHarness) DeployBenchmarkTokenContract

func (n *NetworkHarness) DeployBenchmarkTokenContract(ctx context.Context, ownerAddressIndex int) callcontract.BenchmarkTokenClient

func (*NetworkHarness) DumpState

func (n *NetworkHarness) DumpState()

func (*NetworkHarness) EthereumSimulator

func (n *NetworkHarness) EthereumSimulator() *ethereumAdapter.EthereumSimulator

func (*NetworkHarness) GetStatePersistence

func (*NetworkHarness) GetTransactionPoolBlockHeightTracker

func (n *NetworkHarness) GetTransactionPoolBlockHeightTracker(nodeIndex int) *synchronization.BlockTracker

func (*NetworkHarness) MockContract

func (n *NetworkHarness) MockContract(fakeContractInfo *sdkContext.ContractInfo, code string)

func (*NetworkHarness) Size

func (n *NetworkHarness) Size() int

func (*NetworkHarness) TransportTamperer

func (n *NetworkHarness) TransportTamperer() testGossipAdapter.Tamperer

func (*NetworkHarness) WaitForTransactionInNodeState

func (n *NetworkHarness) WaitForTransactionInNodeState(ctx context.Context, txHash primitives.Sha256, nodeIndex int)

func (*NetworkHarness) WaitForTransactionInState

func (n *NetworkHarness) WaitForTransactionInState(ctx context.Context, txHash primitives.Sha256)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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