File tree 3 files changed +9
-6
lines changed
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 378
378
379
379
EncodeArrays * =
380
380
seq [phase0.Attestation ] |
381
- seq [electra.Attestation ] |
381
+ seq [electra.SingleAttestation ] |
382
382
seq [PrepareBeaconProposer ] |
383
383
seq [RemoteKeystoreInfo ] |
384
384
seq [RestCommitteeSubscription ] |
Original file line number Diff line number Diff line change 178
178
179
179
ForkyAttestation * =
180
180
phase0.Attestation |
181
- electra.Attestation
181
+ electra.SingleAttestation
182
182
183
183
ForkedAttestation * = object
184
184
case kind* : ConsensusFork
@@ -461,6 +461,7 @@ template kind*(
461
461
electra.MsgTrustedSignedBeaconBlock |
462
462
electra.TrustedSignedBeaconBlock |
463
463
electra.Attestation |
464
+ electra.SingleAttestation |
464
465
electra.AggregateAndProof |
465
466
electra.SignedAggregateAndProof |
466
467
electra_mev.SignedBlindedBeaconBlock ]): ConsensusFork =
Original file line number Diff line number Diff line change 1
1
# beacon_chain
2
- # Copyright (c) 2021-2024 Status Research & Development GmbH
2
+ # Copyright (c) 2021-2025 Status Research & Development GmbH
3
3
# Licensed and distributed under either of
4
4
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
5
5
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@@ -72,10 +72,12 @@ proc serveAttestation(
72
72
logScope:
73
73
attestation = shortLog (atst)
74
74
try :
75
- when atst is electra.Attestation :
75
+ when atst is electra.SingleAttestation :
76
76
await vc.submitPoolAttestationsV2 (@ [atst], ApiStrategyKind .First )
77
- else :
77
+ elif atst is phase0. Attestation :
78
78
await vc.submitPoolAttestations (@ [atst], ApiStrategyKind .First )
79
+ else :
80
+ static : doAssert false
79
81
except ValidatorApiError as exc:
80
82
warn " Unable to publish attestation" , reason = exc.getFailureReason ()
81
83
return false
@@ -85,7 +87,7 @@ proc serveAttestation(
85
87
86
88
let res =
87
89
if afterElectra:
88
- let attestation = registered.toElectraAttestation (signature)
90
+ let attestation = registered.toSingleAttestation (signature)
89
91
submitAttestation (attestation)
90
92
else :
91
93
let attestation = registered.toAttestation (signature)
You can’t perform that action at this time.
0 commit comments