You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of a key, use an incrementing index for events. (#3672)
## Motivation
The system needs to enforce that events are never overwritten anyway. It
makes them much harder to use for applications if the applications need
to keep track of that.
## Proposal
Replace the general `key: Vec<u8>` with `index: u32`. Instead of the
application, the system now chooses the index, and always uses the next
available number.
## Test Plan
The tests have been updated, and already use system events.
The user application events will be tested more thoroughly later, when
we have an example (probably `social`) that uses them.
## Release Plan
- Nothing to do / These changes follow the usual release cycle.
## Links
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
0 commit comments