Skip to content

Commit 40c71a7

Browse files
committed
Fix: Allow raising challenge flag from RC
1 parent f3c8061 commit 40c71a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/app/engine/engine.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"google.golang.org/protobuf/types/known/timestamppb"
1515
"log"
1616
"math/rand"
17+
"slices"
1718
"sync"
1819
"time"
1920
)
@@ -117,8 +118,9 @@ func (e *Engine) EnqueueBlocking(change *statemachine.Change) error {
117118
}
118119

119120
func isNonMajorityOrigin(origins []string) bool {
121+
nonMajorityOrigins := []string{"UI", "Engine", "StateMachine", "Majority", "Remote Control YELLOW", "Remote Control BLUE"}
120122
for _, origin := range origins {
121-
if origin == "UI" || origin == "Engine" || origin == "StateMachine" || origin == "Majority" {
123+
if slices.Contains(nonMajorityOrigins, origin) {
122124
return true
123125
}
124126
}

0 commit comments

Comments
 (0)