-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should ResponseDeliverTx.Log Include Events? #15017
Comments
If we were to remove It should be trivial for clients to parse the attribute by splitting on
|
Why don't we extend |
I suppose we could. We could raise this with the CometBFT team and see if they'll accept it. |
Good point. I have never used this for now, but might be useful.
Does CometBFT have a concept of messages? |
This is exactly why we added events to
Nope. |
Theres two problems I feel with the duplication:
Perhaps this problem of associating an event with a particular message can be solved via just adding an attribute for |
Yes @ValarDragon I think that's another option -- you could add an |
i like the approach where we own the change, we talked before about owning the event system in the sdk instead of tendermint, we will end having to do some sort of |
mentioned this in slack, it seems no one from the relayers use this. If we add message index to the normal events in the form of an attribute or something then i think we can remove it and save some space |
Currently,
BaseApp
returns events, as determined and defined by the application, inResponseDeliverTx
in two locations --Log
andEvents
. Note, NEITHERLog
orEvents
are merkle-ized and thus are NOT part of consensus (atm).Now since we include events in both fields, there is obvious redundancy and duplication. However, the
Log
field contains two distinctions:ABCIMessageLog
objects (ref)So should
ABCIMessageLog
contain theEvents
field? If we remove this events fromABCIMessageLog
, then I do not believe clients will be able to understand what events pertain to which messages.cc @tac0turtle @aaronc @ValarDragon
The text was updated successfully, but these errors were encountered: