Skip to content

Commit da9d4cf

Browse files
committed
Merge branch 'develop' into peerDAS
2 parents a62cca1 + 56208aa commit da9d4cf

File tree

19 files changed

+137
-14
lines changed

19 files changed

+137
-14
lines changed

beacon-chain/rpc/endpoints.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ func (s *Service) builderEndpoints(stater lookup.Stater) []endpoint {
161161
const namespace = "builder"
162162
return []endpoint{
163163
{
164+
// Deprecated: use SSE from /eth/v1/events for `Payload Attributes` instead
164165
template: "/eth/v1/builder/states/{state_id}/expected_withdrawals",
165166
name: namespace + ".ExpectedWithdrawals",
166167
middleware: []middleware.Middleware{
@@ -225,6 +226,7 @@ func (s *Service) validatorEndpoints(
225226
const namespace = "validator"
226227
return []endpoint{
227228
{
229+
// Deprecated: use /eth/v2/validator/aggregate_attestation instead
228230
template: "/eth/v1/validator/aggregate_attestation",
229231
name: namespace + ".GetAggregateAttestation",
230232
middleware: []middleware.Middleware{
@@ -253,6 +255,7 @@ func (s *Service) validatorEndpoints(
253255
methods: []string{http.MethodPost},
254256
},
255257
{
258+
// Deprecated: use /eth/v2/validator/aggregate_and_proofs instead
256259
template: "/eth/v1/validator/aggregate_and_proofs",
257260
name: namespace + ".SubmitAggregateAndProofs",
258261
middleware: []middleware.Middleware{
@@ -583,6 +586,7 @@ func (s *Service) beaconEndpoints(
583586
methods: []string{http.MethodGet},
584587
},
585588
{
589+
// Deprecated: use /eth/v2/beacon/blocks instead
586590
template: "/eth/v1/beacon/blocks",
587591
name: namespace + ".PublishBlock",
588592
middleware: []middleware.Middleware{
@@ -593,6 +597,7 @@ func (s *Service) beaconEndpoints(
593597
methods: []string{http.MethodPost},
594598
},
595599
{
600+
// Deprecated: use /eth/v2/beacon/blinded_blocks instead
596601
template: "/eth/v1/beacon/blinded_blocks",
597602
name: namespace + ".PublishBlindedBlock",
598603
middleware: []middleware.Middleware{
@@ -632,6 +637,7 @@ func (s *Service) beaconEndpoints(
632637
methods: []string{http.MethodGet},
633638
},
634639
{
640+
// Deprecated: use /eth/v2/beacon/blocks/{block_id}/attestations instead
635641
template: "/eth/v1/beacon/blocks/{block_id}/attestations",
636642
name: namespace + ".GetBlockAttestations",
637643
middleware: []middleware.Middleware{
@@ -668,6 +674,7 @@ func (s *Service) beaconEndpoints(
668674
methods: []string{http.MethodGet},
669675
},
670676
{
677+
// Deprecated: use /eth/v2/beacon/pool/attestations instead
671678
template: "/eth/v1/beacon/pool/attestations",
672679
name: namespace + ".ListAttestations",
673680
middleware: []middleware.Middleware{
@@ -754,6 +761,7 @@ func (s *Service) beaconEndpoints(
754761
methods: []string{http.MethodPost},
755762
},
756763
{
764+
// Deprecated: use /eth/v2/beacon/pool/attester_slashings instead
757765
template: "/eth/v1/beacon/pool/attester_slashings",
758766
name: namespace + ".GetAttesterSlashings",
759767
middleware: []middleware.Middleware{
@@ -876,6 +884,7 @@ func (s *Service) beaconEndpoints(
876884
methods: []string{http.MethodGet, http.MethodPost},
877885
},
878886
{
887+
// Deprecated: no longer needed post Electra
879888
template: "/eth/v1/beacon/deposit_snapshot",
880889
name: namespace + ".GetDepositSnapshot",
881890
middleware: []middleware.Middleware{

beacon-chain/rpc/eth/beacon/handlers.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ func (s *Server) getBlockResponseBodyJson(ctx context.Context, blk interfaces.Re
292292
}, nil
293293
}
294294

295+
// Deprecated: use GetBlockAttestationsV2 instead
295296
// GetBlockAttestations retrieves attestation included in requested block.
296297
func (s *Server) GetBlockAttestations(w http.ResponseWriter, r *http.Request) {
297298
ctx, span := trace.StartSpan(r.Context(), "beacon.GetBlockAttestations")
@@ -394,6 +395,7 @@ func (s *Server) blockData(ctx context.Context, w http.ResponseWriter, r *http.R
394395
return blk, isOptimistic, root
395396
}
396397

398+
// Deprecated: use PublishBlindedBlockV2 instead
397399
// PublishBlindedBlock instructs the beacon node to use the components of the `SignedBlindedBeaconBlock` to construct
398400
// and publish a SignedBeaconBlock by swapping out the transactions_root for the corresponding full list of `transactions`.
399401
// The beacon node should broadcast a newly constructed SignedBeaconBlock to the beacon network, to be included in the
@@ -624,6 +626,7 @@ func decodeBlindedBellatrixJSON(body []byte) (*eth.GenericSignedBeaconBlock, err
624626
)
625627
}
626628

629+
// Deprecated: use PublishBlockV2 instead
627630
// PublishBlock instructs the beacon node to broadcast a newly signed beacon block to the beacon network,
628631
// to be included in the beacon chain. A success response (20x) indicates that the block
629632
// passed gossip validation and was successfully broadcast onto the network.
@@ -1534,6 +1537,7 @@ func (s *Server) GetGenesis(w http.ResponseWriter, r *http.Request) {
15341537
httputil.WriteJson(w, resp)
15351538
}
15361539

1540+
// Deprecated: no longer needed post Electra
15371541
// GetDepositSnapshot retrieves the EIP-4881 Deposit Tree Snapshot. Either a JSON or,
15381542
// if the Accept header was added, bytes serialized by SSZ will be returned.
15391543
func (s *Server) GetDepositSnapshot(w http.ResponseWriter, r *http.Request) {

beacon-chain/rpc/eth/beacon/handlers_pool.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import (
3434

3535
const broadcastBLSChangesRateLimit = 128
3636

37+
// Deprecated: use ListAttestationsV2 instead
3738
// ListAttestations retrieves attestations known by the node but
3839
// not necessarily incorporated into any block. Allows filtering by committee index or slot.
3940
func (s *Server) ListAttestations(w http.ResponseWriter, r *http.Request) {
@@ -707,6 +708,7 @@ func (s *Server) ListBLSToExecutionChanges(w http.ResponseWriter, r *http.Reques
707708
})
708709
}
709710

711+
// Deprecated: use GetAttesterSlashingsV2 instead
710712
// GetAttesterSlashings retrieves attester slashings known by the node but
711713
// not necessarily incorporated into any block.
712714
func (s *Server) GetAttesterSlashings(w http.ResponseWriter, r *http.Request) {

beacon-chain/rpc/eth/builder/handlers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"github.com/prysmaticlabs/prysm/v5/time/slots"
1818
)
1919

20+
// Deprecated: use SSE from events for `payload attributes` instead
2021
// ExpectedWithdrawals get the withdrawals computed from the specified state, that will be included in the block that gets built on the specified state.
2122
func (s *Server) ExpectedWithdrawals(w http.ResponseWriter, r *http.Request) {
2223
// Retrieve beacon state

beacon-chain/rpc/eth/validator/handlers.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import (
4343
"google.golang.org/grpc/status"
4444
)
4545

46+
// Deprecated: use GetAggregateAttestationV2 instead
4647
// GetAggregateAttestation aggregates all attestations matching the given attestation data root and slot, returning the aggregated result.
4748
func (s *Server) GetAggregateAttestation(w http.ResponseWriter, r *http.Request) {
4849
_, span := trace.StartSpan(r.Context(), "validator.GetAggregateAttestation")
@@ -256,6 +257,7 @@ func (s *Server) SubmitContributionAndProofs(w http.ResponseWriter, r *http.Requ
256257
}
257258
}
258259

260+
// Deprecated: use SubmitAggregateAndProofsV2 instead
259261
// SubmitAggregateAndProofs verifies given aggregate and proofs and publishes them on appropriate gossipsub topic.
260262
func (s *Server) SubmitAggregateAndProofs(w http.ResponseWriter, r *http.Request) {
261263
ctx, span := trace.StartSpan(r.Context(), "validator.SubmitAggregateAndProofs")

beacon-chain/sync/rpc_status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func (s *Service) validateStatusMessage(ctx context.Context, msg *pb.Status) err
295295
return err
296296
}
297297
if !bytes.Equal(forkDigest[:], msg.ForkDigest) {
298-
return p2ptypes.ErrWrongForkDigestVersion
298+
return fmt.Errorf("mismatch fork digest: expected %#x, got %#x: %w", forkDigest[:], msg.ForkDigest, p2ptypes.ErrWrongForkDigestVersion)
299299
}
300300
genesis := s.cfg.clock.GenesisTime()
301301
cp := s.cfg.chain.FinalizedCheckpt()
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Changed
2+
3+
- deprecate beacon api endpoints based on [3.0.0 release](https://github.com/ethereum/beacon-APIs/pull/506) for electra
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Changed
2+
3+
- execution requests errors on ssz length have been improved
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Added
2+
3+
- Added deposit request testing for electra.

changelog/tt_fork_digest.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Ignored
2+
3+
- Add more debugging information to mismatch fork digest error message

0 commit comments

Comments
 (0)