Skip to content

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

Merged
fjl merged 1 commit into
ethereum:masterfrom
karalabe:raw-tracer-panic-fix
Jan 4, 2018
Merged

eth: fix tracer panic when running without configs + reexec#15799
fjl merged 1 commit into
ethereum:masterfrom
karalabe:raw-tracer-panic-fix

Conversation

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