-
Notifications
You must be signed in to change notification settings - Fork 141
fix: always include storage values for SLOAD and SSTORE in GethTrace
#389
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
Merged
mattsse
merged 6 commits into
paradigmxyz:main
from
Wodann:fix/geth-default-debug-tracer
Jan 20, 2026
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4aae3b4
fix: warmed storage values for debug_* default tracer
Wodann 079256a
docs: remove invalid comment
Wodann 485ccd6
misc: apply review suggestions
Wodann 7ce652d
fix: update snapshot writer and snapshots
Wodann e3f3f04
Revert "fix: update snapshot writer and snapshots"
Wodann 062c206
misc: apply review suggestions
Wodann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Revert "fix: update snapshot writer and snapshots"
This reverts commit 7ce652d.
- Loading branch information
commit e3f3f04bd655e3c10cd23da894c083be9fbf4052
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions
2
tests/it/writer/test_trace_printing/1.bytecodes.storage.decoded.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,2 @@ | ||
| [2348] Counter::number() | ||
| ├─ storage changes: | ||
| │ @ 0: <warmed> 0 | ||
| └─ ← [Return] 0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,2 @@ | ||
| [2348] 0xBd770416a3345F91E4B34576cb804a576fa48EB1::8381f58a() | ||
| ├─ storage changes: | ||
| │ @ 0: <warmed> 0 | ||
| └─ ← [Return] 0x0000000000000000000000000000000000000000000000000000000000000000 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,2 @@ | ||
| [2348] Counter::number() | ||
| ├─ storage changes: | ||
| │ @ 0: <warmed> 0 | ||
| └─ ← [Return] 0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,2 @@ | ||
| [2348] 0xBd770416a3345F91E4B34576cb804a576fa48EB1::8381f58a() | ||
| ├─ storage changes: | ||
| │ @ 0: <warmed> 0 | ||
| └─ ← [Return] 0x0000000000000000000000000000000000000000000000000000000000000000 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions
2
tests/it/writer/test_trace_printing/10.bytecodes.storage.decoded.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| [3711] Counter::log0() | ||
| ├─ data: 0x00000000000000000000000000000000000000000000000000000000000000480000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000c68692066726f6d206c6f67300000000000000000000000000000000000000000 | ||
| ├─ storage changes: | ||
| │ @ 0: <warmed> 72 | ||
| └─ ← [Stop] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| [3711] 0xBd770416a3345F91E4B34576cb804a576fa48EB1::0aa73185() | ||
| ├─ data: 0x00000000000000000000000000000000000000000000000000000000000000480000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000c68692066726f6d206c6f67300000000000000000000000000000000000000000 | ||
| ├─ storage changes: | ||
| │ @ 0: <warmed> 72 | ||
| └─ ← [Stop] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| [3711] Counter::log0() | ||
| ├─ data: 0x00000000000000000000000000000000000000000000000000000000000000480000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000c68692066726f6d206c6f67300000000000000000000000000000000000000000 | ||
| ├─ storage changes: | ||
| │ @ 0: <warmed> 72 | ||
| └─ ← [Stop] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| [3711] 0xBd770416a3345F91E4B34576cb804a576fa48EB1::0aa73185() | ||
| ├─ data: 0x00000000000000000000000000000000000000000000000000000000000000480000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000c68692066726f6d206c6f67300000000000000000000000000000000000000000 | ||
| ├─ storage changes: | ||
| │ @ 0: <warmed> 72 | ||
| └─ ← [Stop] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions
2
tests/it/writer/test_trace_printing/11.bytecodes.storage.decoded.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| [4242] Counter::log1() | ||
| ├─ emit Log1(foo: 0x0000000000000000000000000000000000000000000000000000000000000048) | ||
| ├─ storage changes: | ||
| │ @ 0: <warmed> 72 | ||
| └─ ← [Stop] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
should we keep all of this as it was and simply filter for changed values ad exclude warmed? I feel like this is separate from the fix
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.
Reported changes now contain storage warming too, so I'll need to handle it somehow. I can filter out changes with
had_value.is_none()which should always and only be true for storage warming. That leaves the snapshots as-is.Would you prefer that?
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'd prefer that yes
we can still make a decision on the writer later
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 reverted my changes and instead ignored the storage warming "storage changes".