acceptance

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 33 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 DEFAULT_TEST_TIMEOUT_HARD_LIMIT = 15 * time.Second
View Source
const ENABLE_LEAN_HELIX_IN_ACCEPTANCE_TESTS = true

Variables

View Source
var DEFAULT_ACCEPTANCE_EMPTY_BLOCK_TIME = 10 * time.Millisecond

Functions

func GenerateNewManagementReferenceTime added in v1.3.14

func GenerateNewManagementReferenceTime(oldRefTime primitives.TimestampSeconds) primitives.TimestampSeconds

func NewHarness added in v1.3.2

func NewHarness() *networkHarness

Types

type Network added in v1.2.1

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

func (*Network) BlockPersistence added in v1.2.1

func (n *Network) BlockPersistence(nodeIndex int) blockStorageAdapter.TamperingInMemoryBlockPersistence

func (*Network) DeployBenchmarkTokenContract added in v1.2.1

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

func (*Network) DumpState added in v1.2.1

func (n *Network) DumpState()

func (*Network) GetStatePersistence added in v1.2.1

func (n *Network) GetStatePersistence(i int) testStateStorageAdapter.DumpingStatePersistence

func (*Network) GetTransactionPoolBlockHeightTracker added in v1.2.1

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

func (*Network) MockContract added in v1.2.1

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

func (*Network) Size added in v1.2.1

func (n *Network) Size() int

func (*Network) TransportTamperer added in v1.2.1

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

func (*Network) WaitForBlock added in v1.2.1

func (n *Network) WaitForBlock(ctx context.Context, height primitives.BlockHeight)

func (*Network) WaitForManagementChange added in v1.3.14

func (n *Network) WaitForManagementChange(ctx context.Context, currentCommitteeMemberId int, refTime primitives.TimestampSeconds) (primitives.BlockHeight, error)

func (*Network) WaitForTransactionInNodeState added in v1.2.1

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

func (*Network) WaitForTransactionInState added in v1.2.1

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

func (*Network) WaitForTransactionReceiptInTransactionPool added in v1.2.1

func (n *Network) WaitForTransactionReceiptInTransactionPool(ctx context.Context, txHash primitives.Sha256, nodeIndex int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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