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

internal/ethapi: print tx details when submitting #22170

Merged
merged 2 commits into from
Jan 26, 2021

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented Jan 14, 2021

Open for discussion, not sure if we should add this or not.

This PR adds some more infos to the logs when submitting a tx. The idea being that the current logs are enough to find the tx infos if it gets listed in some block explorer, but if it does not (e.g. lost tx or nonce gap), there's no way to see what was being submitted. This can cause problems debugging nonce issues and/or resubmitting lost txs manually.

@holiman
Copy link
Contributor

holiman commented Jan 14, 2021

cc @ryanschneider -- you guys would get a lot of data in the logs, would it be a problem?

@ryanschneider
Copy link
Contributor

@holiman I think it'd be ok for us, it's not that much more logging/load than just logging the hash and I agree that it helps a lot with debugging.

internal/ethapi/api.go Outdated Show resolved Hide resolved
@fjl fjl merged commit 573f373 into ethereum:master Jan 26, 2021
@fjl fjl added this to the 1.10.0 milestone Jan 26, 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.

4 participants