Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
ecca49e0
Unverified
Commit
ecca49e0
authored
6 years ago
by
Péter Szilágyi
Committed by
GitHub
6 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17460 from holiman/tracerfix
Ensure from < to when tracing chain
parents
7d38d53a
106d196e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
api_tracer.go
eth/api_tracer.go
+3
-0
No files found.
eth/api_tracer.go
View file @
ecca49e0
...
...
@@ -119,6 +119,9 @@ func (api *PrivateDebugAPI) TraceChain(ctx context.Context, start, end rpc.Block
if
to
==
nil
{
return
nil
,
fmt
.
Errorf
(
"end block #%d not found"
,
end
)
}
if
from
.
Number
()
.
Cmp
(
to
.
Number
())
>=
0
{
return
nil
,
fmt
.
Errorf
(
"end block (#%d) needs to come after start block (#%d)"
,
end
,
start
)
}
return
api
.
traceChain
(
ctx
,
from
,
to
,
config
)
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment