-
Notifications
You must be signed in to change notification settings - Fork 100
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
OnPersist
and PostPersist
have the same application log hash
#354
Comments
IMO the situation is a little worse than just an RPC problem, because it's impossible to differentiate between these two |
I think it's reasonable, |
So, how do we store both with the same key and which one do we return when there is a |
I got your point, they both use the same storage key. |
I prefer to use different triggers. |
Does we need to publish the result |
Absolutely. Events are important and events can be generated in any execution context, be it block or transaction. And they're generated already for blocks (GAS burn/mint events). |
Any more details about "different triggers"? |
@erikzhang Any solution? Or shall we move it to the version after preview4? |
We can use different triggers to call these two methods. |
I don't think we can close this one. neo-project/neo#2022 makes it possible to solve this, but we still need to decide how to store and request these. |
#380 fixed? |
Not yet, it solves storage problem, but We'll probably need another parameter for |
Close? I think it was fixed by #380 |
Yep, I think we're fine now. We've implemented the same scheme in neo-go and it works. |
Describe the bug
After addition of
postPersist
method, we have 2 scripts with their own application logs (onPersist
andpostPersist
), which are both saved and queried by the block hash.https://github.com/neo-project/neo-modules/blob/master/src/ApplicationLogs/LogReader.cs#L78
Expected behavior
Both
onPersist
andpostPersist
scripts should be accessible for query bygetapplicationlog
RPC.The text was updated successfully, but these errors were encountered: