Update Beacon API events to Electra (#14855)

* Update Beacon API events to Electra

* changelog <3

* fix issues

* send notifications from pending att queue

* Revert "send notifications from pending att queue"

This reverts commit 545408f6cf.
This commit is contained in:
Radosław Kapka
2025-02-03 17:16:38 +01:00
committed by GitHub
parent 967e9255a2
commit 177769a1ce
11 changed files with 144 additions and 81 deletions

View File

@@ -321,6 +321,17 @@ func HydrateAttestationElectra(a *ethpb.AttestationElectra) *ethpb.AttestationEl
return a
}
func HydrateSingleAttestation(a *ethpb.SingleAttestation) *ethpb.SingleAttestation {
if a.Signature == nil {
a.Signature = make([]byte, 96)
}
if a.Data == nil {
a.Data = &ethpb.AttestationData{}
}
a.Data = HydrateAttestationData(a.Data)
return a
}
// HydrateV1Attestation hydrates a v1 attestation object with correct field length sizes
// to comply with fssz marshalling and unmarshalling rules.
func HydrateV1Attestation(a *attv1.Attestation) *attv1.Attestation {