erigontech / erigontech/silkworm

capi: fork validator last_pre_validated_block

Open
#2,363 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
318
Forks
84
PR merge metrics
No merged PRs in 30d

Description

silkworm_start_fork_validator C API creates an ExecutionEngine with a BodiesStageFactory that has last_pre_validated_block providing 0. It means that full body validation will be performed even for bodies that have preverified hashes compiled.

In silkworm these bodies are pre validated using these hashes at the time of ingestion via the engine/execution API. If this happens in erigon too, this value could perhaps be passed from erigon inside SilkwormForkValidatorSettings, and make the body stage faster for historical blocks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.