diff options
Diffstat (limited to 'core/test/blocks-generator.go')
-rw-r--r-- | core/test/blocks-generator.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/test/blocks-generator.go b/core/test/blocks-generator.go index a26a901..3cd97ee 100644 --- a/core/test/blocks-generator.go +++ b/core/test/blocks-generator.go @@ -189,6 +189,12 @@ func normalAckingCountGenerator( } } +// MaxAckingCountGenerator return generator which returns +// fixed maximum acking count. +func MaxAckingCountGenerator(count int) func() int { + return func() int { return count } +} + // generateValidatorPicker is a function generator, which would generate // a function to randomly pick one validator ID from a slice of validator ID. func generateValidatorPicker() func([]types.ValidatorID) types.ValidatorID { |