add target block to quarantine when missing (#1438)

This commit is contained in:
Jacek Sieka 2020-08-04 21:00:55 +02:00 committed by GitHub
parent a979568d74
commit 48aca60e81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ proc isValidAttestation*(
if tgtBlck.isNil:
debug "Target block not found"
pool.addUnresolved(attestation)
pool.quarantine.addMissing(attestation.data.beacon_block_root)
pool.quarantine.addMissing(attestation.data.target.root)
return false
# The following rule follows implicitly from that we clear out any
@ -299,7 +299,7 @@ proc isValidAggregatedAttestation*(
let tgtBlck = pool.chainDag.getRef(aggregate.data.target.root)
if tgtBlck.isNil:
debug "Target block not found"
pool.quarantine.addMissing(aggregate.data.beacon_block_root)
pool.quarantine.addMissing(aggregate.data.target.root)
return
# TODO this could be any state in the target epoch