Skip to content

Commit

Permalink
remove consensus events
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Mar 14, 2024
1 parent 36981e6 commit fbedbfd
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions core/event/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,12 @@ 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. These events
Emit(event protoiface.MessageV1) error

// EmitKV emits an event based on an event and kv-pair attributes.
//
// 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
}

0 comments on commit fbedbfd

Please sign in to comment.