github.com/number571/tendermint@v0.34.11-gost/internal/test/factory/tx.go (about)

     1  package factory
     2  
     3  import "github.com/number571/tendermint/types"
     4  
     5  // MakeTxs is a helper function to generate mock transactions by given the block height
     6  // and the transaction numbers.
     7  func MakeTxs(height int64, num int) (txs []types.Tx) {
     8  	for i := 0; i < num; i++ {
     9  		txs = append(txs, types.Tx([]byte{byte(height), byte(i)}))
    10  	}
    11  	return txs
    12  }
    13  
    14  func MakeTenTxs(height int64) (txs []types.Tx) {
    15  	return MakeTxs(height, 10)
    16  }