mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
Investigate UnknownTargetRoot slasher errors (#5006)
* Fix the UnknownTargetRoot
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user