Skip to content

core/rawdb: Dereference Block Number Before Logging#23328

Merged
karalabe merged 1 commit intoethereum:masterfrom
patrick-ogrady:fix-tx-receipt-logs
Aug 4, 2021
Merged

core/rawdb: Dereference Block Number Before Logging#23328
karalabe merged 1 commit intoethereum:masterfrom
patrick-ogrady:fix-tx-receipt-logs

Conversation

@patrick-ogrady
Copy link
Copy Markdown
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
Copy Markdown
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