engine
engine copied to clipboard
Issue with the events
It seems that some events are not present at the end of a block.
I put the following code in the app#EndBlock
and module#EndBlock
fmt.Println("End blocker app")
for _, evt := range ctx.EventManager().Events() {
fmt.Println(evt.Type)
for _, attr := range evt.Attributes {
fmt.Println(string(attr.GetKey()), ":", string(attr.GetValue()))
}
}
and here is the result:
No event on the module
The module doesn't have any event where the app has some

Events missing
The events from this transaction are not in the block

This might not be a bug but there is something that is not really clear here
From cosmos API:
https://docs.cosmos.network/master/core/events.html
Events are returned to the underlying consensus engine in the response of the following ABCI messages: BeginBlock EndBlock