File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -165,11 +165,13 @@ func (e *Engine) handleGameEventBehavior(change *statemachine.Change) *statemach
165
165
gameEvent := change .GetAddGameEventChange ().GameEvent
166
166
behavior := e .config .GameEventBehavior [gameEvent .Type .String ()]
167
167
168
+ if isNonMajorityOrigin (gameEvent .Origin ) {
169
+ // events from GC must always be passed through
170
+ return change
171
+ }
172
+
168
173
switch behavior {
169
174
case Config_BEHAVIOR_ACCEPT , Config_BEHAVIOR_ACCEPT_MAJORITY , Config_BEHAVIOR_PROPOSE_ONLY :
170
- if isNonMajorityOrigin (gameEvent .Origin ) {
171
- return change
172
- }
173
175
log .Println ("Convert game event to proposal: " , gameEvent .String ())
174
176
timestamp := timestamppb .New (e .timeProvider ())
175
177
return & statemachine.Change {
You can’t perform that action at this time.
0 commit comments