mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-02 04:14:33 +00:00
Ensure PTC votes accurately reflect data availability (#9412)
Co-Authored-By: Eitan Seri-Levi <eserilev@ucsc.edu>
This commit is contained in:
@@ -2197,8 +2197,11 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
slot_start.is_some_and(|start| observed.saturating_sub(start) < payload_due)
|
||||
});
|
||||
|
||||
// TODO(EIP-7732): Check blob data availability. For now, default to true.
|
||||
let blob_data_available = true;
|
||||
// A payload is only imported into fork choice if its data was available.
|
||||
let blob_data_available = self
|
||||
.canonical_head
|
||||
.fork_choice_read_lock()
|
||||
.is_payload_received(&beacon_block_root);
|
||||
|
||||
Ok(PayloadAttestationData {
|
||||
beacon_block_root,
|
||||
|
||||
Reference in New Issue
Block a user