-
Notifications
You must be signed in to change notification settings - Fork 21.4k
eth/tracers: fix supply tracer uncle accounting #31882
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
Conversation
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.
Thanks!
|
Test failling on windows: |
|
Also now that you will make changes please rename the tests so they reflect being related to the supply tracer. A side note: the existing test suite is in eth/tracers/internal/tracetest/supply_test.go |
45eebbd to
d103430
Compare
d103430 to
54c2d4f
Compare
|
@s1na please check the update. I removed my added test file and improved the existing tests. |
|
Bump. @s1na please see the last update. It'd be good to merge since this is a fairly obvious bug and the supply-tracer currently undercounts the total supply when running from genesis. |
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
Uncle rewards were being omitted in the supply tracer due to a bug. This PR fixes that. --------- Co-authored-by: Sina Mahmoodi <[email protected]>
Found a bug in the supply tracer, it's missing a
fallthroughfor thetracing.BalanceIncreaseRewardMineUnclecase.I added unit tests and fixed the issue 👍