Versions in this module Expand all Collapse all v0 v0.4.0 Apr 4, 2024 Changes in this version type NodePartition + SystemName string + type PartitionNode struct + AddrGRPC string + AddrRPC string + EventHandler *testevent.TestEventHandler + OwnerIndexer *partition.OwnerIndexer + func (pn *PartitionNode) Stop() error v0.3.0 Feb 28, 2024 Changes in this version + func BlockchainContains(part *NodePartition, criteria func(tx *types.TransactionOrder) bool) func() bool + func BlockchainContainsTx(part *NodePartition, tx *types.TransactionOrder) func() bool + func WaitTxProof(t *testing.T, part *NodePartition, txOrder *types.TransactionOrder) (*types.TransactionRecord, *types.TxProof, error) + func WaitUnitProof(t *testing.T, part *NodePartition, ID types.UnitID, ...) (*types.UnitDataAndProof, error) + type AlphabillNetwork struct + NodePartitions map[types.SystemID]*NodePartition + RootPartition *RootPartition + func NewAlphabillPartition(nodePartitions []*NodePartition) (*AlphabillNetwork, error) + func NewMultiRootAlphabillPartition(nofRootNodes uint8, nodePartitions []*NodePartition) (*AlphabillNetwork, error) + func (a *AlphabillNetwork) Close() (err error) + func (a *AlphabillNetwork) GetNodePartition(sysID types.SystemID) (*NodePartition, error) + func (a *AlphabillNetwork) GetValidator(sysID types.SystemID) (partition.UnicityCertificateValidator, error) + func (a *AlphabillNetwork) Start(t *testing.T) error + func (a *AlphabillNetwork) WaitClose(t *testing.T) + type NodePartition struct + Nodes []*partitionNode + func NewPartition(t *testing.T, nodeCount uint8, ...) (abPartition *NodePartition, err error) + func (n *NodePartition) BroadcastTx(tx *types.TransactionOrder) error + func (n *NodePartition) GetTxProof(tx *types.TransactionOrder) (*types.Block, *types.TxProof, *types.TransactionRecord, error) + func (n *NodePartition) SubmitTx(tx *types.TransactionOrder) error + type RootPartition struct + Nodes []*rootNode + TrustBase map[string]abcrypto.Verifier