-
Notifications
You must be signed in to change notification settings - Fork 20.5k
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
core/tracing: document OnCodeChange
now being called from SelfDestruct
#31007
Conversation
core/tracing/CHANGELOG.md
Outdated
|
||
### `OnCodeChange` change | ||
|
||
The `OnCodeChange` is now called when `StateDB#SelfDestruct` or `StateDB#SelfDestruct6780` is invoked, which happens when a contract self destruct itself. Previously, no code change was emitted on such occasions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not accurate.
OnCodeChange is invoked only when StateDB#SelfDestruct is called, or when StateDB#SelfDestruct6780 is called and the contract is actually destroyed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've re-worded to be clearer on SelfDestruct6780
.
Do you think we should also document when those situations happens and on which fork 6780 is actually used?
OnCodeChange
now being called in SelfDestructOnCodeChange
now being called from SelfDestruct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks. That reminds me there are a few other changes that should go into the changelog
Is this the clarification for #31011 btw? Can we close that or that's a separate issue? |
@s1na No not at all. I'm not sure why the issue was created on The panicked occurred due to some speculative execution of the block, so the live tracer was active from two block tracing code paths which cannot work with our Firehose tracer. All in all, it's unrelated. |
No description provided.