Documentation ¶
Index ¶
- Constants
- Variables
- func NewHarness() *networkHarness
- type Network
- func (n *Network) BlockPersistence(nodeIndex int) blockStorageAdapter.TamperingInMemoryBlockPersistence
- func (n *Network) DeployBenchmarkTokenContract(ctx context.Context, ownerAddressIndex int) callcontract.BenchmarkTokenClient
- func (n *Network) DumpState()
- func (n *Network) GetStatePersistence(i int) testStateStorageAdapter.DumpingStatePersistence
- func (n *Network) GetTransactionPoolBlockHeightTracker(nodeIndex int) *synchronization.BlockTracker
- func (n *Network) MockContract(fakeContractInfo *sdkContext.ContractInfo, code string)
- func (n *Network) Size() int
- func (n *Network) TransportTamperer() testGossipAdapter.Tamperer
- func (n *Network) WaitForBlock(ctx context.Context, height primitives.BlockHeight)
- func (n *Network) WaitForTransactionInNodeState(ctx context.Context, txHash primitives.Sha256, nodeIndex int)
- func (n *Network) WaitForTransactionInState(ctx context.Context, txHash primitives.Sha256)
- func (n *Network) WaitForTransactionReceiptInTransactionPool(ctx context.Context, txHash primitives.Sha256, nodeIndex int)
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 = 10 * 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 NewHarness ¶ added in v1.3.2
func NewHarness() *networkHarness
Types ¶
type Network ¶ added in v1.2.1
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) 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) 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) WaitForTransactionInNodeState ¶ added in v1.2.1
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
Click to show internal directories.
Click to hide internal directories.