You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
427 B

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