chore: lint v2 (#24118)
This commit is contained in:
@@ -141,12 +141,13 @@ func RandomRequestFinalizeBlock(
|
||||
mVal.livenessState = params.LivenessTransitionMatrix().NextState(r, mVal.livenessState)
|
||||
signed := true
|
||||
|
||||
if mVal.livenessState == 1 {
|
||||
switch mVal.livenessState {
|
||||
case 1:
|
||||
// spotty connection, 50% probability of success
|
||||
// See https://github.com/golang/go/issues/23804#issuecomment-365370418
|
||||
// for reasoning behind computing like this
|
||||
signed = r.Int63()%2 == 0
|
||||
} else if mVal.livenessState == 2 {
|
||||
case 2:
|
||||
// offline
|
||||
signed = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user