bitfield for PTC votes

This commit is contained in:
hopinheimer
2026-03-16 02:30:35 -04:00
parent d89e7f78bb
commit f747696113
7 changed files with 235 additions and 236 deletions

View File

@@ -1665,10 +1665,15 @@ impl<T: BeaconChainTypes> ExecutionPendingBlock<T> {
.get_indexed_payload_attestation(&state, payload_attestation, &chain.spec)
.map_err(|e| BlockError::PerBlockProcessingError(e.into_with_index(i)))?;
let ptc = state
.get_ptc(indexed_payload_attestation.data.slot, &chain.spec)
.map_err(|e| BlockError::BeaconChainError(Box::new(e.into())))?;
match fork_choice.on_payload_attestation(
current_slot,
indexed_payload_attestation,
true,
&ptc.0,
) {
Ok(()) => Ok(()),
// Ignore invalid payload attestations whilst importing from a block.