Skip to content

Commit

Permalink
Investigate UnknownTargetRoot slasher errors (#5006)
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit 7adfecc
Author: armaganyildirak <armaganyildirak@gmail.com>
Date:   Wed Dec 13 15:22:02 2023 -0500

    Fix the UnknownTargetRoot
  • Loading branch information
michaelsproul committed Jun 4, 2024
1 parent c335a4d commit 43c4c1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions beacon_node/beacon_chain/src/attestation_verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,11 @@ fn process_slash_info<T: BeaconChainTypes>(
if let Some(slasher) = chain.slasher.as_ref() {
let (indexed_attestation, check_signature, err) = match slash_info {
SignatureNotChecked(attestation, err) => {
if let Error::UnknownHeadBlock { .. } = err {
if attestation.data.beacon_block_root == attestation.data.target.root {
return err;
}
}
match obtain_indexed_attestation_and_committees_per_slot(chain, attestation) {
Ok((indexed, _)) => (indexed, true, err),
Err(e) => {
Expand Down

0 comments on commit 43c4c1f

Please sign in to comment.