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

eth: fix tracer panic when running without configs + reexec #15799

Merged
merged 1 commit into from
Jan 4, 2018

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented Jan 3, 2018

The fancy tracer PR added a new functionality to reexecute a number of historical blocks for a trace if the state is missing for the requested entity (block, chain, tx). This is 128 by default but can be explicitly set via a tracer config field.

Currently there's a nil pointer panic in the old raw tracer because that one does not have a config parameter at all, but the tracing code still pokes around config.Reexec. This PR fixes it by checking first whether the config parameter itself was set before trying to poke around its fields.

@karalabe karalabe added this to the 1.8.0 milestone Jan 3, 2018
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.

2 participants