Open jonastheis opened 2 months ago
why sometimes use "-" sometimes use "_" in the path?
missing_header_fields
is a package within l2geth
, which will host some other functionality to read the missing header file later on and will be used within l2geth
.
export-headers-toolkit
is a standalone, separate module that doesn't need to run in the context of l2geth
.
1. Purpose or design rationale of this PR
We are using the Clique consensus in Scroll L2. Amongst others, it requires the following header fields:
extraData
difficulty
However, these fields are currently not stored on L1/DA and we're planning to add them in a future upgrade. In order for nodes to be able to reconstruct the correct block hashes when only reading data from L1, we need to provide the historical values of these fields to these nodes through a separate file.
This toolkit provides commands to export the missing fields, deduplicate the data and create a file with the missing fields that can be used to reconstruct the correct block hashes when only reading data from L1.
Analysis of data
Mainnet until block 7455960
Sepolia until block 5422047
2. PR title
Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:
3. Deployment tag versioning
Has the version in
params/version.go
been updated?4. Breaking change label
Does this PR have the
breaking-change
label?