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

Correct log index returns in etherium apis #2283

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

maxconway
Copy link
Contributor

Fixes log index returns

Logs need to be indexed starting at 0 at the start of each block (versus previously they started at 0 for each receipt)

This commit does it all on the fly, counting through blocks as needed at the point of returning from the APIs, rather than by adding to the log structures. This keeps the logs themselves cleaner but at the cost of some messy code and some amount of performance penalty.

Closes #2188

@maxconway maxconway force-pushed the max/bugfix/correct_eth_log_indices branch from 72bc4dd to 3b54398 Compare February 3, 2025 15:47
Copy link
Contributor

github-actions bot commented Feb 3, 2025

🐰 Bencher Report

Branchmax/bugfix/correct_eth_log_indices
Testbedself-hosted
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
full-blocks-erc20-transfers/full-blocks-erc20-transfers📈 view plot
🚷 view threshold
1,036.30
(-14.04%)Baseline: 1,205.63
1,595.45
(64.95%)
full-blocks-evm-transfers/full-blocks-evm-transfers📈 view plot
🚷 view threshold
445.82
(-6.52%)Baseline: 476.89
676.68
(65.88%)
full-blocks-zil-transfers/full-blocks-zil-transfers📈 view plot
🚷 view threshold
4,102.10
(+3.92%)Baseline: 3,947.38
5,177.91
(79.22%)
process-empty/process-empty📈 view plot
🚷 view threshold
10.22
(+11.21%)Baseline: 9.19
11.58
(88.23%)
🐰 View full continuous benchmarking report in Bencher

@maxconway maxconway marked this pull request as ready for review February 5, 2025 09:53
@maxconway maxconway enabled auto-merge February 5, 2025 09:53
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.

Receipts contain incorrect log indices
1 participant