Documentation
¶
Index ¶
- func CreateTestInput(t *testing.T, isCheckTx bool) (sdk.Context, staking.Keeper, checkpoint.Keeper)
- func FindSigner(signer ethcmn.Address, vals []types.Validator) bool
- func GenRandCheckpointHeader(start int, headerSize int) (headerBlock types.CheckpointBlockHeader, err error)
- func GenRandomDividendAccount(count int, startID uint64, randomise bool) (dividendAccounts []types.DividendAccount)
- func GenRandomVal(count int, startBlock uint64, power int64, timeAlive uint64, randomise bool, ...) (validators []types.Validator)
- func LoadValidatorSet(count int, t *testing.T, keeper staking.Keeper, ctx sdk.Context, ...) types.ValidatorSet
- func MakeTestCodec() *codec.Codec
- func PrintVals(t *testing.T, valset *types.ValidatorSet)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestInput ¶
init for test cases
func FindSigner ¶
finds address in give validator slice
func GenRandCheckpointHeader ¶
func GenRandCheckpointHeader(start int, headerSize int) (headerBlock types.CheckpointBlockHeader, err error)
create random header block
func GenRandomDividendAccount ¶
func GenRandomDividendAccount(count int, startID uint64, randomise bool) (dividendAccounts []types.DividendAccount)
GenRandomDividendAccount random dividend accounts
func GenRandomVal ¶
func GenRandomVal(count int, startBlock uint64, power int64, timeAlive uint64, randomise bool, startID uint64) (validators []types.Validator)
Generate random validators
func LoadValidatorSet ¶
func LoadValidatorSet(count int, t *testing.T, keeper staking.Keeper, ctx sdk.Context, randomise bool, timeAlive int) types.ValidatorSet
Load Validator Set
func MakeTestCodec ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.