Add payload attestation pool and block packing

Store gossip-verified PayloadAttestationMessages in the operation pool
keyed by PayloadAttestationData. At block production time, aggregate
them into PayloadAttestations using PTC position mapping and include
in the block body. Wire pool insertion into the gossip handler after
fork choice.
This commit is contained in:
Jimmy Chen
2026-04-27 11:32:25 +02:00
parent 6ab48a76f0
commit 1543db8b87
5 changed files with 343 additions and 3 deletions

View File

@@ -4156,6 +4156,14 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
),
}
}
if let Err(e) = self.chain.add_payload_attestation_to_pool(&verified) {
warn!(
reason = ?e,
%peer_id,
"Failed to add payload attestation to pool"
);
}
}
Err(RejectedPayloadAttestation {
payload_attestation_message,