xatu: integrate execution-processor in embedded mode#1
Open
Conversation
Refactor the xatu package to use execution-processor library in embedded mode, implementing the DataSource interface to provide direct data access without JSON-RPC overhead. Changes: - Replace --xatu.redis.dsn and --xatu.clickhouse.dsn flags with single --xatu.config flag pointing to execution-processor config file - Implement execution.DataSource interface for embedded node integration - Add type adapters (Block, Transaction, Receipt) to bridge Erigon types to execution-processor interfaces - Add StructLog tracer for transaction tracing - Require -tags embedded build flag to avoid CGO secp256k1 conflicts Build with: go build -tags embedded ./cmd/erigon
- Replace full stack capture with targeted CallToAddress extraction - Add pre-computed opcodeStrings array for O(1) lookup - Remove unused math import - Add comprehensive benchmarks to verify 17x speedup
Replace the execution-processor post-processing step with inline GasUsed calculation during tracing. Track the last log index per call depth and compute GasUsed as the gas difference between consecutive opcodes at the same depth. This eliminates the need for a second pass and reduces overall processing time.
…-embedded perf(tracer): optimize opcode tracing for embedded mode
|
Moved to ethpandaops/erigone#2 @Savid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
related: ethpandaops/execution-processor#44
Build with:
go build -tags embedded ./cmd/erigonuse execution processor inside erigon