mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-15 17:58:23 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user