Closed
Description
Problem
Currently, anchor events are emitted through logs. This is potentially problematic since logs have a maximum size per transaction. And so one might emit an event and that event can be not present in the transaction.
Solution
Instead, perhaps a better (hack) would be to add to the anchor codegeneration a special instruction for events that does nothing. Then, when emit!(event)
is called, we recursively CPI into the program with that instruction and the serialized event as data. Indexers can then use this to reliably build a table.
Metadata
Metadata
Assignees
Labels
No labels