We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79cc75b commit aabcfb2Copy full SHA for aabcfb2
1 file changed
x/simulation/mock_cometbft.go
@@ -184,6 +184,12 @@ func RandomRequestFinalizeBlock(
184
185
// TODO: Determine capacity before allocation
186
evidence := make([]abci.Misbehavior, 0)
187
+ // If the evidenceFraction value is to close to 1.0,
188
+ // the following loop will most likely never end
189
+ if params.EvidenceFraction() > 0.9 {
190
+ // Reduce the evidenceFraction to a more sane value
191
+ params.evidenceFraction = 0.9
192
+ }
193
194
for r.Float64() < params.EvidenceFraction() {
195
vals := voteInfos
0 commit comments