Documentation ¶
Index ¶
- Constants
- func GenerateBatch(startHeight uint64, endHeight uint64) *types.Batch
- func GenerateBlocks(startHeight uint64, num uint64) []*types.Block
- func GenerateCommits(blocks []*types.Block) []*types.Commit
- func GenerateGenesis(initialHeight int64) *tmtypes.GenesisDoc
- func GenerateRandomValidatorSet() *tmtypes.ValidatorSet
- func GenerateState(initialHeight int64, lastBlockHeight int64) types.State
- func GetABCIProxyAppMock(logger log.Logger) proxy.AppConns
Constants ¶
View Source
const ( // DefaultBatchSize is the default batch size for testing DefaultBatchSize = 5 // BlockVersion is the default block version for testing BlockVersion = 1 // AppVersion is the default app version for testing AppVersion = 2 )
Variables ¶
This section is empty.
Functions ¶
func GenerateBatch ¶
GenerateBatch generates a batch out of random blocks
func GenerateBlocks ¶
GenerateBlocks generates random blocks.
func GenerateCommits ¶
GenerateCommits generates commits based on passed blocks.
func GenerateGenesis ¶
func GenerateGenesis(initialHeight int64) *tmtypes.GenesisDoc
GenerateGenesis generates a genesis for testing.
func GenerateRandomValidatorSet ¶
func GenerateRandomValidatorSet() *tmtypes.ValidatorSet
GenerateRandomValidatorSet generates random validator sets
func GenerateState ¶
GenerateState generates an initial state for testing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.