diff --git a/core/event/service.go b/core/event/service.go index 6668c1d5bf..4c6f625ba2 100644 --- a/core/event/service.go +++ b/core/event/service.go @@ -18,9 +18,7 @@ type Service interface { type Manager interface { // Emit emits events represented as a protobuf message (as described in ADR 032). // - // Callers SHOULD assume that these events may be included in consensus. These events - // MUST be emitted deterministically and adding, removing or changing these events SHOULD - // be considered state-machine breaking. + // Callers SHOULD assume that these events will not be included in consensus. Emit(event protoiface.MessageV1) error // EmitKV emits an event based on an event and kv-pair attributes. @@ -28,11 +26,4 @@ type Manager interface { // These events will not be part of consensus and adding, removing or changing these events is // not a state-machine breaking change. EmitKV(eventType string, attrs ...Attribute) error - - // EmitNonConsensus emits events represented as a protobuf message (as described in ADR 032), without - // including it in blockchain consensus. - // - // These events will not be part of consensus and adding, removing or changing events is - // not a state-machine breaking change. - EmitNonConsensus(event protoiface.MessageV1) error } diff --git a/runtime/events.go b/runtime/events.go index 956e445b42..1ac2e19e14 100644 --- a/runtime/events.go +++ b/runtime/events.go @@ -49,9 +49,3 @@ func (e Events) EmitKV(eventType string, attrs ...event.Attribute) error { e.EventManagerI.EmitEvents(sdk.Events{sdk.NewEvent(eventType, attributes...)}) return nil } - -// EmitNonConsensus emits an typed event that is defined in the protobuf file. -// In the future these events will be added to consensus. -func (e Events) EmitNonConsensus(event protoiface.MessageV1) error { - return e.EventManagerI.EmitTypedEvent(event) -} diff --git a/x/accounts/utils_test.go b/x/accounts/utils_test.go index 97ee882861..0fec983968 100644 --- a/x/accounts/utils_test.go +++ b/x/accounts/utils_test.go @@ -33,10 +33,6 @@ func (e eventService) EmitKV(eventType string, attrs ...event.Attribute) error { return nil } -func (e eventService) EmitNonConsensus(event protoiface.MessageV1) error { - return nil -} - func (e eventService) EventManager(ctx context.Context) event.Manager { return e } var _ InterfaceRegistry = (*interfaceRegistry)(nil)