Versions in this module Expand all Collapse all v1 v1.4.9 Sep 30, 2020 Changes in this version + func ConstructBlock(t *testing.T, blockNum uint64, previousHash []byte, simulationResults [][]byte, ...) *common.Block + func ConstructBlockFromBlockDetails(t *testing.T, blockDetails *BlockDetails, sign bool) *common.Block + func ConstructBlockWithTxid(t *testing.T, blockNum uint64, previousHash []byte, simulationResults [][]byte, ...) *common.Block + func ConstructBytesProposalResponsePayload(version string, simulationResults []byte) ([]byte, error) + func ConstructRandomBytes(t testing.TB, size int) []byte + func ConstructTestBlock(t *testing.T, blockNum uint64, numTx int, txSize int) *common.Block + func ConstructTestBlocks(t *testing.T, numBlocks int) []*common.Block + func ConstructTransaction(_ *testing.T, simulationResults []byte, txid string, sign bool) (*common.Envelope, string, error) + func ConstructTransactionFromTxDetails(txDetails *TxDetails, sign bool) (*common.Envelope, string, error) + func CopyDir(srcroot, destroot string) error + func CreateTarBytesForTest(testFiles []*TarFileEntry) []byte + func NewBlock(env []*common.Envelope, blockNum uint64, previousHash []byte) *common.Block + func SetTxID(t *testing.T, block *common.Block, txNum int, txID string) + type BlockDetails struct + BlockNum uint64 + PreviousHash []byte + Txs []*TxDetails + type BlockGenerator struct + func NewBlockGenerator(t *testing.T, ledgerID string, signTxs bool) (*BlockGenerator, *common.Block) + func (bg *BlockGenerator) NextBlock(simulationResults [][]byte) *common.Block + func (bg *BlockGenerator) NextBlockWithTxid(simulationResults [][]byte, txids []string) *common.Block + func (bg *BlockGenerator) NextTestBlock(numTx int, txSize int) *common.Block + func (bg *BlockGenerator) NextTestBlocks(numBlocks int) []*common.Block + type TarFileEntry struct + Body string + Name string + type TxDetails struct + ChaincodeName string + ChaincodeVersion string + SimulationResults []byte + TxID string Incompatible versions in this module v2.1.1+incompatible Jun 1, 2020