Documentation
¶
Index ¶
- Constants
- type NetworkHarness
- func (n *NetworkHarness) BlockPersistence(nodeIndex int) blockStorageAdapter.TamperingInMemoryBlockPersistence
- func (n *NetworkHarness) DeployBenchmarkTokenContract(ctx context.Context, ownerAddressIndex int) callcontract.BenchmarkTokenClient
- func (n *NetworkHarness) DumpState()
- func (n *NetworkHarness) EthereumSimulator() *ethereumAdapter.EthereumSimulator
- func (n *NetworkHarness) GetStatePersistence(i int) testStateStorageAdapter.DumpingStatePersistence
- func (n *NetworkHarness) GetTransactionPoolBlockHeightTracker(nodeIndex int) *synchronization.BlockTracker
- func (n *NetworkHarness) MockContract(fakeContractInfo *sdkContext.ContractInfo, code string)
- func (n *NetworkHarness) Size() int
- func (n *NetworkHarness) TransportTamperer() testGossipAdapter.Tamperer
- func (n *NetworkHarness) WaitForTransactionInNodeState(ctx context.Context, txHash primitives.Sha256, nodeIndex int)
- func (n *NetworkHarness) WaitForTransactionInState(ctx context.Context, txHash primitives.Sha256)
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 ¶
func (*NetworkHarness) BlockPersistence ¶
func (n *NetworkHarness) BlockPersistence(nodeIndex int) blockStorageAdapter.TamperingInMemoryBlockPersistence
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 (n *NetworkHarness) GetStatePersistence(i int) testStateStorageAdapter.DumpingStatePersistence
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)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.