You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It involves a lot of database ops, pretty much equivalent to resigning all of the input attestations. For files >1GB this seems to take >1hr, which is unreasonable.
This issue proposes speeding up (2) by safely minifying the input file into one attestation per validator. This minification process could also optionally be applied on export, and could eventually become part of its own CLI tool for working with EIP-3076 JSON files.
The text was updated successfully, but these errors were encountered:
## Issue Addressed
Closes#2354
## Proposed Changes
Add a `minify` method to `slashing_protection::Interchange` that keeps only the maximum-epoch attestation and maximum-slot block for each validator. Specifically, `minify` constructs "synthetic" attestations (with no `signing_root`) containing the maximum source epoch _and_ the maximum target epoch from the input. This is equivalent to the `minify_synth` algorithm that I've formally verified in this repository:
https://github.com/michaelsproul/slashing-proofs
## Additional Info
Includes the JSON loading optimisation from #2347
Description
Importing slashing protection data is currently slow for two reasons:
This issue proposes speeding up (2) by safely minifying the input file into one attestation per validator. This minification process could also optionally be applied on export, and could eventually become part of its own CLI tool for working with EIP-3076 JSON files.
The text was updated successfully, but these errors were encountered: