mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-26 09:13:41 +00:00
Maintain attestations that reference unknown blocks (#2319)
## Issue Addressed #635 ## Proposed Changes - Keep attestations that reference a block we have not seen for 30secs before being re processed - If we do import the block before that time elapses, it is reprocessed in that moment - The first time it fails, do nothing wrt to gossipsub propagation or peer downscoring. If after being re processed it fails, downscore with a `LowToleranceError` and ignore the message.
This commit is contained in:
@@ -223,7 +223,7 @@ fn aggregated_gossip_verification() {
|
||||
.expect(&format!(
|
||||
"{} should error during verify_aggregated_attestation_for_gossip",
|
||||
$desc
|
||||
)),
|
||||
)).0,
|
||||
$( $error ) |+ $( if $guard )?
|
||||
),
|
||||
"case: {}",
|
||||
@@ -606,7 +606,7 @@ fn unaggregated_gossip_verification() {
|
||||
.expect(&format!(
|
||||
"{} should error during verify_unaggregated_attestation_for_gossip",
|
||||
$desc
|
||||
)),
|
||||
)).0,
|
||||
$( $error ) |+ $( if $guard )?
|
||||
),
|
||||
"case: {}",
|
||||
|
||||
@@ -332,7 +332,7 @@ fn epoch_boundary_state_attestation_processing() {
|
||||
{
|
||||
checked_pre_fin = true;
|
||||
assert!(matches!(
|
||||
res.err().unwrap(),
|
||||
res.err().unwrap().0,
|
||||
AttnError::PastSlot {
|
||||
attestation_slot,
|
||||
earliest_permissible_slot,
|
||||
|
||||
@@ -537,7 +537,7 @@ fn attestations_with_increasing_slots() {
|
||||
|
||||
if expected_attestation_slot < expected_earliest_permissible_slot {
|
||||
assert!(matches!(
|
||||
res.err().unwrap(),
|
||||
res.err().unwrap().0,
|
||||
AttnError::PastSlot {
|
||||
attestation_slot,
|
||||
earliest_permissible_slot,
|
||||
|
||||
Reference in New Issue
Block a user