-
Notifications
You must be signed in to change notification settings - Fork 784
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
Store equivocating blocks on disk #4325
base: unstable
Are you sure you want to change the base?
Conversation
I'm tempted to gate this feature behind another flag. There's a DoS opportunity here since we'll determine a Peer scoring should eventually ban peers sending us |
Just noticed this while going through the queued 4.3.1 changes; a few things to note after #4316:
lighthouse/beacon_node/beacon_chain/src/block_verification.rs Lines 280 to 286 in 8e65419
lighthouse/beacon_node/network/src/beacon_processor/worker/gossip_methods.rs Lines 794 to 799 in 8e65419
|
To add to what Jack said, this statement is no longer true since the changes we made in #4316:
We removed the early/read-only equivocation check, because it caused the BN to forget about equivocations it had seen. Now it only returns an equivocation error ( |
I'm pushing this to the next release since there doesn't seem to be much demand and I don't have much bandwidth. |
Pushed this to 5.2.0 as it doesn't seem urgent, feel free to revert if needed |
Issue Addressed
NA
Proposed Changes
Stores
RepeatProposal
blocks on disk if the--invalid-gossip-verified-blocks-path
flag is provided.We only store these blocks when they're received on gossip or are the result of a block lookup via RPC. Duplicates received via a batch sync won't be stored on disk. This is primarily for simplicity; we should see the blocks via gossip or on an RPC lookup if we're following the head. This feature is a debugging assistance tool, rather than a surefire way to catch slashings (use a slasher for that).
Additional Info
NA