Skip to content

Commit

Permalink
Fix the UnknownTargetRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
armaganyildirak committed Dec 13, 2023
1 parent a3fb27c commit 7adfecc
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 7adfecc

Please sign in to comment.