Add Logs to Blockchain.ApplicationExecuted
#2992
Labels
Discussion
Initial issue state - proposed but not yet accepted
Blockchain.ApplicationExecuted
#2992
Summary or problem description
Trying to get all
LogEventArgs
for a transaction. Will emit logs twice. Reason being, is when a user send ainvokescript
orinvokefunction
to a node it will emit the log twice forApplicationEngine.Log
event. Because one for theinvokescript
and one for adding the transaction (if valid). The only way to get the logs is by hooking on toApplicationEngine.Log
. Since the transaction state isn't known either way. No way of knowing whether the transaction is one that is getting committed or not.Reference: neo-project/neo-modules#807 (comment)
So process goes like this:
Wallet.MakeTransaction()
will do a test invoke on the node and see if transaction is valid than will send the transaction on the network, in turn will commit the transaction (if valid). Seeing howLogEventArgs
only has three propertiesScriptContainer
,Message
andContract
. It will be the same transaction hash for bothWallet.MakeTransaction()
and the committing transaction on the block.Do you have any solution you want to propose?
Add Logs to
Blockchain.ApplicationExecuted
Neo Version
Where in the software does this update applies to?
The text was updated successfully, but these errors were encountered: