You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3 KiB

  1. # ADR 012: ABCI Events
  2. ## Changelog
  3. - *2018-09-02* Remove ABCI errors component. Update description for events
  4. - *2018-07-12* Initial version
  5. ## Context
  6. ABCI tags were first described in [ADR 002](https://github.com/tendermint/tendermint/blob/master/docs/architecture/adr-002-event-subscription.md).
  7. They are key-value pairs that can be used to index transactions.
  8. Currently, ABCI messages return a list of tags to describe an
  9. "event" that took place during the Check/DeliverTx/Begin/EndBlock,
  10. where each tag refers to a different property of the event, like the sending and receiving account addresses.
  11. Since there is only one list of tags, recording data for multiple such events in
  12. a single Check/DeliverTx/Begin/EndBlock must be done using prefixes in the key
  13. space.
  14. TODO: brief description of how the indexing works
  15. ## Decision
  16. Instead of returning a list of tags, return a list of events, where
  17. each event is a list of tags. This way we naturally capture the concept of
  18. multiple events happening during a single ABCI message.
  19. TODO: describe impact on indexing and querying
  20. ## Status
  21. Proposed
  22. ## Consequences
  23. ### Positive
  24. - Ability to track distinct events separate from ABCI calls (DeliverTx/BeginBlock/EndBlock)
  25. - More powerful query abilities
  26. ### Negative
  27. - More complex query syntax
  28. - More complex search implementation
  29. ### Neutral