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

fix(rpc/trace): return empty if after >= traces #11715

Merged
merged 3 commits into from
Oct 14, 2024

Conversation

jsvisa
Copy link
Contributor

@jsvisa jsvisa commented Oct 14, 2024

Signed-off-by: jsvisa <delweng@gmail.com>
@mattsse mattsse added the A-rpc Related to the RPC implementation label Oct 14, 2024
Signed-off-by: jsvisa <delweng@gmail.com>
crates/rpc/rpc/src/trace.rs Outdated Show resolved Hide resolved
Comment on lines 328 to 330
if let Some(after) = after.map(|a| a as usize) {
if after < all_traces.len() {
all_traces.drain(0..after);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the same as before but adds the return, which is the fix?

@mattsse mattsse enabled auto-merge October 14, 2024 16:27
@mattsse mattsse added this pull request to the merge queue Oct 14, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 14, 2024
@mattsse mattsse merged commit 9f9de0f into paradigmxyz:main Oct 14, 2024
39 checks passed
vandenbogart pushed a commit to testmachine-ai/reth that referenced this pull request Oct 14, 2024
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
@jsvisa jsvisa deleted the trace-after branch October 15, 2024 00:48
reymom pushed a commit to reymom/reth that referenced this pull request Oct 15, 2024
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Related to the RPC implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

trace_filter returns random results
2 participants