Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockchainContainsTx ¶
func BlockchainContainsTx(tx *txsystem.Transaction, network *AlphabillPartition) func() bool
BlockchainContainsTx checks if at least one partition node block contains the given transaction.
Types ¶
type AlphabillPartition ¶
type AlphabillPartition struct {
RootChain *rootchain.RootChain
Nodes []*partition.Node
// contains filtered or unexported fields
}
AlphabillPartition for integration tests
func NewNetwork ¶
func NewNetwork(partitionNodes int, txSystemProvider func() txsystem.TransactionSystem, systemIdentifier []byte) (*AlphabillPartition, error)
NewNetwork creates the AlphabillPartition for integration tests. It starts partition nodes with given transaction system and a root chain.
func (*AlphabillPartition) BroadcastTx ¶
func (a *AlphabillPartition) BroadcastTx(tx *txsystem.Transaction) error
BroadcastTx sends transactions to all nodes.
func (*AlphabillPartition) Close ¶
func (a *AlphabillPartition) Close() error
func (*AlphabillPartition) SubmitTx ¶
func (a *AlphabillPartition) SubmitTx(tx *txsystem.Transaction) error
SubmitTx sends transactions to the first node.
Click to show internal directories.
Click to hide internal directories.