engine icon indicating copy to clipboard operation
engine copied to clipboard

Issue with the events

Open antho1404 opened this issue 5 years ago • 0 comments

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

Screen Shot 2020-02-27 at 10 30 57

Events missing

The events from this transaction are not in the block

Screen Shot 2020-02-27 at 10 31 06

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

antho1404 avatar Feb 27 '20 03:02 antho1404