Skip to content
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/rawdb: Dereference Block Number Before Logging #23328

Merged
merged 1 commit into from
Aug 4, 2021

Conversation

patrick-ogrady
Copy link
Contributor

@patrick-ogrady patrick-ogrady commented Aug 3, 2021

Currently, go-ethereum prints out the address of the block number variable (*uint64) instead of the block number (uint64) itself:

ERROR[08-03|21:41:58.520] Transaction not found                    number=0xc005b9d158 hash=9d0943..3b7192 txhash=e3e774..d85e2e

This PR dereferences the block number pointer after it has been checked to be non-nil before logging.

@patrick-ogrady patrick-ogrady changed the title core/rawdb: Print Block Number Correctly core/rawdb: Dereference Block Number Before Logging Aug 3, 2021
Copy link
Member

@rjl493456442 rjl493456442 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching it, LGTM!

@karalabe karalabe added this to the 1.10.7 milestone Aug 4, 2021
@karalabe karalabe merged commit d3e3a46 into ethereum:master Aug 4, 2021
sidhujag pushed a commit to sidhujag/go-ethereum that referenced this pull request Aug 15, 2021
atif-konasl pushed a commit to frozeman/pandora-execution-engine that referenced this pull request Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants